{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-58367","id":"CVE-2025-58367","title":"DeepDiff is vulnerable to DoS and Remote Code Execution via Delta class pollution","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.seriali","descriptionLong":"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.","published":"2025-09-05T21:52:31.743Z","updated":"2026-10-28T02:30:46.974442727Z","reserved":"2025-08-29T16:19:59.012Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":10,"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","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"4.0","score":10,"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","rating":"critical","source":"GitHub_M"},{"version":"4.0","score":10,"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:X","rating":"critical","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"critical","source":"GitHub"}],"rating":"critical","products":["seperman deepdiff"],"affectedProducts":[{"vendor":"seperman","product":"deepdiff","defaultStatus":null,"versions":[{"version":">= 5.0.0, < 8.6.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"deepdiff","purl":"pkg:pypi/deepdiff","ranges":[">=5.0.0 <8.6.1"],"fixed":["8.6.1"],"advisory":"GHSA-mw26-5g2v-hqw3"}],"cwes":["CWE-915"],"aliases":["GHSA-mw26-5g2v-hqw3","PYSEC-2026-327"],"references":[{"url":"https://github.com/seperman/deepdiff/security/advisories/GHSA-mw26-5g2v-hqw3","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/seperman/deepdiff/commit/c69c06c13f75e849c770ade3f556cd16209fd183","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/seperman/deepdiff/releases/tag/8.6.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58367.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58367","tags":["advisory"]},{"url":"https://github.com/dgilland/pydash/issues/180","tags":["web"]},{"url":"https://github.com/dgilland/pydash/commit/2015f0a4bcdbc3a5b27652e38fe97b3ee13ac15f","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/deepdiff/PYSEC-2026-327.yaml","tags":["web"]},{"url":"https://github.com/seperman/deepdiff","tags":["package"]},{"url":"https://pypi.org/project/deepdiff","tags":["web","package"]},{"url":"https://github.com/advisories/GHSA-mw26-5g2v-hqw3","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.01197,"epssPercentile":0.68713,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-58367","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58367","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-58367","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mw26-5g2v-hqw3","ok":true,"note":"GHSA-mw26-5g2v-hqw3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-58367","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}