CVE-2025-58367
CRITICAL 10.0CVSS 4.0DeepDiff Class Pollution in Delta class leading to DoS, Remote Code Execution, and more
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.
- Published
- 5 Sep 2025
- Last modified
- 27 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-915
- Also known as
- GHSA-mw26-5g2v-hqw3PYSEC-2026-327
- Sources
- NVDJSONOSV GHSA-mw26-5g2v-hqw3JSONOSV PYSEC-2026-327JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | CRITICAL 10.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | deepdiff | >= 5.0.0, < 8.6.1 | 8.6.1 |
References
- https://github.com/seperman/deepdiff/commit/c69c06c13f75e849c770ade3f556cd16209fd183 · WEB
- https://github.com/seperman/deepdiff/releases/tag/8.6.1 · WEB
- https://github.com/seperman/deepdiff/security/advisories/GHSA-mw26-5g2v-hqw3 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-58367 · ADVISORY
- https://github.com/dgilland/pydash/issues/180 · WEB
- https://github.com/dgilland/pydash/commit/2015f0a4bcdbc3a5b27652e38fe97b3ee13ac15f · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/deepdiff/PYSEC-2026-327.yaml · WEB
- https://github.com/seperman/deepdiff · PACKAGE
- https://pypi.org/project/deepdiff · WEB, PACKAGE
- https://github.com/advisories/GHSA-mw26-5g2v-hqw3 · ADVISORY
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 5 Sep 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Sep 2025)