# CVE-2025-58367: deepdiff: DeepDiff is a project focused on Deep Difference and search of any Python data

CVE-2025-58367 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2025-58367, released September 5, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-58367
- Priority: Routine
- CVSS: n/a
- EPSS: 0.0120
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 5, 2025

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | deepdiff Debian 13.5 (trixie) | 8.1.1-4+deb13u1 | [DEBIAN-CVE-2025-58367](https://patchblox.com/security/data/fix/linux/debian-cve-2025-58367.md) | Sep 5, 2025 |
| Linux | deepdiff Debian 14 | 8.6.1-1 | [DEBIAN-CVE-2025-58367](https://patchblox.com/security/data/fix/linux/debian-cve-2025-58367.md) | Sep 5, 2025 |
| Linux | python-deepdiff opensuse-leap 15.6 | 6.3.0-150600.3.3.1 | [SUSE-SU-2025:03127-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03127-1.md) | Sep 10, 2025 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
