# CVE-2023-26145: pydash Command Injection vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **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:P`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.74% (percentile 91, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-8mjr-6c96-39w8, PYSEC-2023-179
- **Published:** 2023-09-28T05:00:01.328Z
- **Modified:** 2026-06-17T05:42:46.733Z

## Who should check

- Projects that depend on PyPI package pydash (\< 6.0.0)
- Anyone running pydash \< 6.0.0

## 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

- PyPI `pydash`: affected \< 6.0.0; fixed 6.0.0 (osv)
- pydash: \< 6.0.0 (cvelist)

## Mitigation

- Upgrade pydash to 6.0.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-26145>
- vendor: <https://github.com/advisories/GHSA-8mjr-6c96-39w8>
- patch: <https://github.com/dgilland/pydash/commit/6ff0831ad285fff937cafd2a853f20cc9ae92021>
- exploit: <https://gist.github.com/CalumHutton/45d33e9ea55bf4953b3b31c84703dfca>
- other: <https://security.snyk.io/vuln/SNYK-PYTHON-PYDASH-5916518>
- other: <https://github.com/dgilland/pydash>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/pydash/PYSEC-2023-179.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-26145>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8mjr-6c96-39w8> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2023-179> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-26145> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-26145>
