---
title: "CVE-2025-58367: DeepDiff Class Pollution in Delta class leading to DoS, Remote Code Execution, and more"
url: https://erroneo.us/security/cve/CVE-2025-58367/
description: "CVE-2025-58367 (deepdiff (PyPI)): DeepDiff is a project focused on Deep Difference and search of any Python data. Versions 5.0.0 through 8.6.0 are…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-09-05
date_modified: 2025-09-10
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-58367"
kev: false
cvss: 10
epss: 0.01188
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2025-58367: DeepDiff Class Pollution in Delta class leading to DoS, Remote Code Execution, and more

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.2% , percentile 68: FIRST’s model estimates a 1.2% chance of exploitation activity in the next 30 days, higher than 68% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes deepdiff (PyPI) >= 5.0.0, <= 8.6.0, fixed in 8.6.1 . Check your lockfile, including transitive dependencies.

## What it is

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

## Affected packages

- PyPI `deepdiff` >= 5.0.0, <= 8.6.0 → fixed: 8.6.1

## Affected products (CVE record)

- seperman deepdiff: >= 5.0.0, < 8.6.1

## Severity

- GitHub_M CVSS 4.0: 10 `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: 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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact partial .
- FIRST EPSS (model of 2026-10-21): 1.19% probability of exploitation activity in the next 30 days; percentile 68.

## Sources

- [GitHub Advisory GHSA-mw26-5g2v-hqw3](https://github.com/advisories/GHSA-mw26-5g2v-hqw3)
- [CVE.org record CVE-2025-58367](https://www.cve.org/CVERecord?id=CVE-2025-58367)
- [NVD entry CVE-2025-58367](https://nvd.nist.gov/vuln/detail/CVE-2025-58367)
- [github.com](https://github.com/seperman/deepdiff/security/advisories/GHSA-mw26-5g2v-hqw3)
- [github.com](https://github.com/seperman/deepdiff/commit/c69c06c13f75e849c770ade3f556cd16209fd183)
- [github.com](https://github.com/seperman/deepdiff/releases/tag/8.6.1)
- [github.com](https://github.com/dgilland/pydash/issues/180)
- [github.com](https://github.com/dgilland/pydash/commit/2015f0a4bcdbc3a5b27652e38fe97b3ee13ac15f)

---
Source page: https://erroneo.us/security/cve/CVE-2025-58367/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
