OS command injection in pydash
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
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. **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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | pydash | before 6.0.0 | 6.0.0 | Patch available | CNA |
| — | pydash (PyPI) | before 6.0.0 | 6.0.0 | Patch available | GHSA-8mjr-6c96-39w8 |
- pydash Vendor— Affected before 6.0.0 Fixed in 6.0.0 Patch available CNA
- pydash (PyPI) Vendor— Affected before 6.0.0 Fixed in 6.0.0 Patch available GHSA-8mjr-6c96-39w8
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:derrickgilland:pydash:*:*:*:*:*:*:*:* | before 6.0.0 | Vulnerable | Derrickgilland |
- cpe:2.3:a:derrickgilland:pydash:*:*:*:*:*:*:*:* Versions before 6.0.0 Vulnerable ·Derrickgilland
Remediation
- Fix · CNA pydash Fixed in 6.0.0
- Fix · GHSA-8mjr-6c96-39w8 pydash (PyPI) Fixed in 6.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-26145
- 2026-10-03 Alias added: GHSA-8mjr-6c96-39w8
References
Sources
- CVE-2023-26145 · CVE Program
- CVE-2023-26145 · NVD
- FIRST EPSS
- GHSA-8mjr-6c96-39w8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences