CVE-2023-26145
pydash Command Injection vulnerability
Also known as GHSA-8mjr-6c96-39w8, PYSEC-2023-179
Mitigation
- Upgrade pydash to 6.0.0 or later.
Who should check
- Projects that depend on PyPI package pydash (< 6.0.0)
- Anyone running pydash < 6.0.0
Vulnerability facts
- Affected
- pydash < 6.0.0
- Fixed in
- 6.0.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:POpen in CVSS calculator
Show all 9 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- E: P
- EPSS
- 3.74% chance of exploitation in 30 days (percentile 91, 2026-11-26)
- CWE
- CWE-78
- Modified
Description
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. **Note:** The pydash.objects.invoke() method is vulnerable to Command Injection when the following prerequisites are satisfied: 1) The source object (argument 1) is not a built-in object such as list/dict (otherwise, the __init__.__globals__ path is not accessible) 2) The attacker has control over argument 2 (the path string) and argument 3 (the argument to pass to the invoked method) The 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI pydash | < 6.0.0 | 6.0.0 | osv |
| pydash | < 6.0.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-26145. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-26145.md Affected: pydash < 6.0.0 Fixed in: 6.0.0 Steps: 1. Search this machine and project for pydash (PyPI), pydash: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
FAQ
Is CVE-2023-26145 being exploited?
There is no confirmed exploitation: CVE-2023-26145 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.74% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-26145?
High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-26145?
pydash < 6.0.0.
Is there a fix for CVE-2023-26145?
Yes. Fixed in 6.0.0. Upgrade pydash to 6.0.0 or later.
How do I check if I'm affected by CVE-2023-26145?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.