DeepDiff is vulnerable to DoS and Remote Code Execution via Delta class pollution
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Tampering
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-915.
Summary
DeepDiff is a project focused on Deep Difference and search of any Python data. Versions 5.0.0 through 8.6.0 are vulnerable to class pollution via the Delta class constructor, and when combined with a gadget available in DeltaDiff, it can lead to Denial of Service and Remote Code Execution (via insecure Pickle deserialization) exploitation. The gadget available in DeepDiff allows `deepdiff.serialization.SAFE_TO_IMPORT` to be modified to allow dangerous classes such as posix.system, and then perform insecure Pickle deserialization via the Delta class. This potentially allows any Python code to be executed, given that the input to Delta is user-controlled. Depending on the application where DeepDiff is used, this can also lead to other vulnerabilities. This is fixed in version 8.6.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
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 |
|---|---|---|---|---|---|
| seperman | deepdiff | 5.0.0 to before 8.6.1 | 8.6.1 | Patch available | CNA |
| — | deepdiff (PyPI) | 5.0.0 to before 8.6.1 | 8.6.1 | Patch available | GHSA-mw26-5g2v-hqw3 |
- deepdiff Vendorseperman Affected 5.0.0 to before 8.6.1 Fixed in 8.6.1 Patch available CNA
- deepdiff (PyPI) Vendor— Affected 5.0.0 to before 8.6.1 Fixed in 8.6.1 Patch available GHSA-mw26-5g2v-hqw3
Remediation
- Fix · CNA deepdiff (seperman) Fixed in 8.6.1
- Fix · GHSA-mw26-5g2v-hqw3 deepdiff (PyPI) Fixed in 8.6.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58367
- 2026-10-03 Alias added: GHSA-mw26-5g2v-hqw3
References
Other 8
- https://github.com/seperman/deepdiff/security/advisories/GHSA-mw26-5g2v-hqw3
- https://github.com/seperman/deepdiff/commit/c69c06c13f75e849c770ade3f556cd16209fd183
- https://github.com/seperman/deepdiff/releases/tag/8.6.1
- https://github.com/dgilland/pydash/issues/180
- https://github.com/dgilland/pydash/commit/2015f0a4bcdbc3a5b27652e38fe97b3ee13ac15f
- https://github.com/pypa/advisory-database/tree/main/vulns/deepdiff/PYSEC-2026-327.yaml
- https://github.com/seperman/deepdiff
- https://pypi.org/project/deepdiff
Sources
- CVE-2025-58367 · CVE Program
- CVE-2025-58367 · NVD
- FIRST EPSS
- GHSA-mw26-5g2v-hqw3 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-58367 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences