CVE-2025-58367
seperman deepdiff
Raw vector
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:XCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2025-58367 is a critical-severity Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915) vulnerability in seperman deepdiff (named in the CVE record; NVD lists no product yet). Its CVSS base score is 10.0 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Client Execution (T1203); ranked in the top 31% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-6 (Least Privilege) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
DeepDiff versions 5.0.0 through 8.6.0 contain a class pollution vulnerability in the Delta class constructor. When combined with an available gadget that modifies deepdiff.serialization.SAFE_TO_IMPORT, the flaw permits unsafe classes such as posix.system to be loaded, enabling insecure pickle deserialization that can result in denial of service or remote code execution. The issue is tracked as CWE-915 and carries a CVSS 4.0 score of 10.0.
An unauthenticated attacker who can supply user-controlled input to the Delta constructor can alter the import allow-list and trigger deserialization of arbitrary Python objects. This grants the ability to execute any Python code reachable in the application's environment, with impact severity depending on the privileges of the process using DeepDiff.
The vulnerability is fixed in release 8.6.1. The project advisory GHSA-mw26-5g2v-hqw3 and the associated commit c69c06c13f75e849c770ade3f556cd16209fd183 document the patch that prevents modification of SAFE_TO_IMPORT and removes the unsafe deserialization path.
EPSS for the CVE rose from a low of 0.0027 to a peak of 0.0101, indicating measurable post-disclosure exploitation interest. No confirmed in-the-wild exploitation has been reported.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-27049
Vulnerability Data
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…
more
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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Enforces authorizations so that only permitted attributes may be modified on an object.
Limits the set of modifiable attributes a subject is authorized to touch.
Validates incoming attribute names and values so that only explicitly allowed fields are accepted for update.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require allow-listing of mutable object attributes and input validation to block mass-assignment flaws.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect mass-assignment flaws but does not itself prevent them at runtime.
Secure coding standards explicitly forbid unsafe dynamic attribute assignment and require property allow-lists.
Information access restriction limits who can modify objects but does not address which attributes may be changed.
A.8.30 contracts the supplier to apply secure design, coding and testing practices (8.25–8.29), so a well-implemented clause reduces ordinary software weaknesses in delivered code the way those practices do; CWE-915 is a code-level mass-assignment defect reachable by those practices, but the effect depends on the supplier's implementation and the clause's ceiling on this verb is `partial`.
A.8.8's reach is disclosure-based, and mass assignment does surface as CVEs in published products (multiple examples in CWE-915's observed list), so the clause finds that minority; the bulk of mass-assignment instances live in custom first-party code that never receives a CVE, which A.8.8 does not reach.