CVE-2025-58367 Details
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.
A vulnerability allowing class pollution has been identified in the DeepDiff library, specifically in versions 5.0.0 through 8.6.0. This issue arises in the Delta class constructor, where user-controlled input can be manipulated to alter the 'SAFE_TO_IMPORT' setting. By introducing dangerous classes, such as 'posix.system', and exploiting insecure deserialization with Pickle, an attacker could execute arbitrary Python code. Additionally, this vulnerability could disrupt application functionality or, in web contexts, bypass authentication.
Users can upgrade to DeepDiff version 8.6.1, which addresses the vulnerability by adding validation to prevent class pollution and remote code execution risks. The update also includes security tests to ensure the vulnerability is not reintroduced.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 5, 2025CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/seperman/deepdiff/commit/c69c06c13f75e849c770ade3f556cd16209fd183 | [email protected] | Source CodeVendor |
| https://github.com/seperman/deepdiff/releases/tag/8.6.1 | [email protected] | Release NotesVendor |
| https://github.com/seperman/deepdiff/security/advisories/GHSA-mw26-5g2v-hqw3 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-915 | Improperly Controlled Modification of Dynamically-Determined Object Attributes | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| seperman deepdiff | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 5, 2025 | New CVE Received | [email protected] |
Volerion