{"id":"CVE-2025-58367","published":"2025-09-05T21:52:31Z","modified":"2025-09-08T20:08:37Z","title":"DeepDiff is vulnerable to DoS and Remote Code Execution via Delta class pollution","vendor":"seperman","product":"deepdiff","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01197,"percentile":0.68854,"provenance":"source"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"}],"references":[{"url":"https://github.com/seperman/deepdiff/security/advisories/GHSA-mw26-5g2v-hqw3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/seperman/deepdiff/commit/c69c06c13f75e849c770ade3f556cd16209fd183","tags":["x_refsource_MISC"]},{"url":"https://github.com/seperman/deepdiff/releases/tag/8.6.1","tags":["x_refsource_MISC"]}],"priority":{"score":20.8,"factors":[{"name":"EPSS percentile","points":13.77},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"seperman","affectedVersions":[{"vendor":"seperman","product":"deepdiff","versions":[">= 5.0.0, < 8.6.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-08T20:08:27.158163Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"deepdiff","vulnerableRanges":[">=5.0.0, <8.6.1"],"patched":["8.6.1"],"from":["GHSA-mw26-5g2v-hqw3","PYSEC-2026-327"],"provenance":"source"}],"summary":{"text":"DeepDiff, a Python library for deep difference and search of data, contains a flaw in its Delta class: a class pollution issue in the constructor that, combined with a gadget in DeltaDiff, allows the SAFE_TO_IMPORT list in deepdiff.serialization to be modified and insecure Pickle deserialization to be triggered. An attacker who can supply user-controlled input to the Delta class over the network, without authentication or user interaction, can cause denial of service or execute arbitrary Python code, which may enable further compromise depending on how the application uses DeepDiff.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:06:58Z"},"euvd":{"id":"EUVD-2025-27049","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-seperman-deepdiff-cve-2023-26145","parents":[{"from":"CVE-2023-26145","to":"CVE-2025-58367","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/pydash/helpers.py"],"commits":["https://github.com/dgilland/pydash/commit/6ff0831ad285fff937cafd2a853f20cc9ae92021","https://github.com/dgilland/pydash/commit/2015f0a4bcdbc3a5b27652e38fe97b3ee13ac15f"],"basis":"shared function","functions":["_base_get_object"]}]}],"packageHistory":[{"cve":"CVE-2025-58367","published":"2025-09-05","fixed":"8.6.1","kev":false},{"cve":"CVE-2026-33155","published":"2026-03-20","fixed":"8.6.2","kev":false,"link":{"from":"CVE-2025-58367","to":"CVE-2026-33155","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:deepdiff","fromFixed":"8.6.1","toFixed":"8.6.2","daysApart":196}]}}],"package":"PyPI:deepdiff"}}