{"id":"CVE-2023-26145","published":"2023-09-28T05:00:01Z","modified":"2024-09-23T19:02:59Z","title":"This affects versions of the package pydash before 6.0.0","vendor":null,"product":null,"tier":"tail","description":{"text":"This affects versions of the package pydash before 6.0.0. A number of pydash methods such as pydash.objects.invoke() and pydash.collections.invoke_map() accept dotted paths (Deep Path Strings) to target a nested Python object, relative to the original source object. These paths can be used to target internal class attributes and dict items, to retrieve, modify or invoke nested Python objects.\r\r**Note:**\r\rThe pydash.objects.invoke() method is vulnerable to Command Injection when the following prerequisites are satisfied:\r\r1) The source object (argument 1) is not a built-in object such as list/dict (otherwise, the __init__.__globals__ path is not accessible)\r\r2) The attacker has control over argument 2 (the path string) and argument 3 (the argument to pass to the invoked method)\r\r\rThe pydash.collections.invoke_map() method is also vulnerable, but is harder to exploit as the attacker does not have direct control over the argument to be passed to the invoked function.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03742,"percentile":0.90623,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-PYDASH-5916518","tags":[]},{"url":"https://gist.github.com/CalumHutton/45d33e9ea55bf4953b3b31c84703dfca","tags":[]},{"url":"https://github.com/dgilland/pydash/commit/6ff0831ad285fff937cafd2a853f20cc9ae92021","tags":[]}],"priority":{"score":23.3,"factors":[{"name":"EPSS percentile","points":18.12},{"name":"CVSS severity","points":5.18}]},"affectedVersions":[{"vendor":"n/a","product":"pydash","versions":["< 6.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-09-23T19:02:43.525044Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pydash","vulnerableRanges":["<6.0.0"],"patched":["6.0.0"],"from":["GHSA-8mjr-6c96-39w8","PYSEC-2023-179"],"provenance":"source"}],"summary":{"text":"The pydash Python utility library, prior to version 6.0.0, allows dotted \"Deep Path Strings\" to reach nested objects, and this traversal can be abused in pydash.objects.invoke() (and, less practically, pydash.collections.invoke_map()) to inject OS commands. Exploitation of invoke() requires that the source object is not a built-in such as a list or dict, and that an attacker controls both the path string and the argument passed to the invoked method.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:34Z"},"euvd":{"id":"EUVD-2023-0214","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-seperman-deepdiff-cve-2023-26145","children":[{"from":"CVE-2023-26145","to":"CVE-2025-58367","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/pydash/helpers.py"],"commits":["https://github.com/dgilland/pydash/commit/6ff0831ad285fff937cafd2a853f20cc9ae92021","https://github.com/dgilland/pydash/commit/2015f0a4bcdbc3a5b27652e38fe97b3ee13ac15f"],"basis":"shared function","functions":["_base_get_object"]}]}]}}