{"id":"CVE-2023-26145","aliases":["CVE-2023-26145","GHSA-8mjr-6c96-39w8","PYSEC-2023-179"],"related":[],"kind":"vulnerability","state":"published","title":"pydash Command Injection vulnerability","summary":"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.\n\n**Note:**\n\nThe pydash.objects.invoke() method is vulnerable to Command Injection when the following prerequisites are satisfied:\n\n1) The source object (argument 1) is not a built-in object such as list/dict (otherwise, the __init__.__globals__ path is not accessible)\n\n2) The attacker has control over argument 2 (the path string) and argument 3 (the argument to pass to the invoked method)\n\n\nThe 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.\n\n**Note:**\n\nThe pydash.objects.invoke() method is vulnerable to Command Injection when the following prerequisites are satisfied:\n\n1) The source object (argument 1) is not a built-in object such as list/dict (otherwise, the __init__.__globals__ path is not accessible)\n\n2) The attacker has control over argument 2 (the path string) and argument 3 (the argument to pass to the invoked method)\n\n\nThe 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.","source":"cvelist"},{"lang":"es","text":"Esto afecta a las versiones del paquete pydash anteriores a la 6.0.0. Varios métodos de pydash, como pydash.objects.invoke() y pydash.collections.invoke_map(), aceptan rutas de puntos (Deep Path Strings) para apuntar a un objeto Python anidado, en relación con el objeto fuente original. Estas rutas se pueden utilizar para apuntar a atributos internos de clase y elementos de dictado, para recuperar, modificar o invocar objetos Python anidados. **Nota:** El método pydash.objects.invoke() es vulnerable a la inyección de comandos cuando se cumplen los siguientes requisitos previos: \n1) El objeto fuente (argumento 1) no es un objeto integrado como list/dict (de lo contrario, the __init__.__globals__ path no es accesible) \n2) El atacante tiene control sobre el argumento 2 (la cadena de ruta)\n3) El argumento (el argumento para pasar al método invocado) \nEl método pydash.collections.invoke_map() también es vulnerable, pero es más difícil de explotar ya que el atacante no tiene control directo sobre el argumento que se pasará a la función invocada.","source":"nvd"}],"published":"2023-09-28T05:00:01.328Z","modified":"2026-06-17T05:42:46.733Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:P","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:P","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-77","CWE-78","CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"6.0.0","status":"affected"}],"product":"pydash","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.0.0"}],"ecosystem":"PyPI","package":"pydash","purl":"pkg:pypi/pydash","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.0.0"}],"vendor":"derrickgilland","product":"pydash","cpe":"cpe:2.3:a:derrickgilland:pydash:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"6ff0831ad285fff937cafd2a853f20cc9ae92021"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.0.0"}],"ecosystem":"PyPI","package":"pydash","purl":"pkg:pypi/pydash","repo":"https://github.com/dgilland/pydash","source":"pysec"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-PYDASH-5916518","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://gist.github.com/CalumHutton/45d33e9ea55bf4953b3b31c84703dfca","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dgilland/pydash/commit/6ff0831ad285fff937cafd2a853f20cc9ae92021","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26145","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dgilland/pydash","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pydash/PYSEC-2023-179.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8mjr-6c96-39w8","tags":["advisory"],"sources":["pysec"]}],"credits":["Calum Hutton"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-09-23T19:02:43.525Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-26145","url":"https://www.cve.org/CVERecord?id=CVE-2023-26145","licence":"CVE Terms of Use","modified":"2024-09-23T19:02:59.017Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8mjr-6c96-39w8","url":"https://github.com/advisories/GHSA-8mjr-6c96-39w8","licence":"CC-BY-4.0","modified":"2024-10-21T21:01:08.062Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-26145","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26145","licence":"Public domain","modified":"2026-06-17T05:42:46.733Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-179","url":"https://osv.dev/vulnerability/PYSEC-2023-179","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:30.657Z"}],"updatedAt":"2026-11-25T22:58:28.247Z","epss":{"score":0.03595,"percentile":0.89737,"date":"2026-12-01T12:00:22.000Z"}}