# CVE-2025-58367: DeepDiff is vulnerable to DoS and Remote Code Execution via Delta class pollution

- Severity: Critical 10.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.29%, higher than 71% of CVEs (2026-12-02)
- Published: 2025-09-03T22:25:09.000Z
- Modified: 2026-10-27T16:30:07.116Z
- Also known as: GHSA-mw26-5g2v-hqw3, PYSEC-2026-327
- Weaknesses: CWE-915
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- seperman deepdiff: >= 5.0.0, < 8.6.1
- deepdiff (PyPI): from 5.0.0 before 8.6.1

## Every score

- GitHub_M: CVSS:4.0 10.0 Critical `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`
- GitHub: CVSS:4.0 Critical `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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/seperman/deepdiff/security/advisories/GHSA-mw26-5g2v-hqw3> (web)
- <https://github.com/seperman/deepdiff/commit/c69c06c13f75e849c770ade3f556cd16209fd183> (web)
- <https://github.com/seperman/deepdiff/releases/tag/8.6.1> (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> (package, web)
- <https://github.com/advisories/GHSA-mw26-5g2v-hqw3> (advisory)

## Sources

- CVE List: [CVE-2025-58367](https://www.cve.org/CVERecord?id=CVE-2025-58367), CVE Terms of Use, modified 2025-09-08
- GitHub Advisory Database: [GHSA-mw26-5g2v-hqw3](https://github.com/advisories/GHSA-mw26-5g2v-hqw3), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2025-58367](https://nvd.nist.gov/vuln/detail/CVE-2025-58367), Public domain, modified 2026-10-18
- PyPA Advisory Database: [PYSEC-2026-327](https://osv.dev/vulnerability/PYSEC-2026-327), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-58367 · Whole record: https://cve.day/CVE-2025-58367.json · Rebuilt by cve.day 2026-11-25T22:59:04.292Z
