Skip to content
OpenAdvisories
Critical · 10.0 CVE-2025-58367 EUVD-2025-27049GHSA-mw26-5g2v-hqw3PYSEC-2026-327

DeepDiff is vulnerable to DoS and Remote Code Execution via Delta class pollution

Published Sep 5, 2025 · Updated Sep 8, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
seperman deepdiff >= 5.0.0, < 8.6.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 deepdiff 8.6.1-1 —
Debian 13 deepdiff 8.1.1-4+deb13u1 —
Debian 12 deepdiff No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 deepdiff No fix yet —
Ubuntu 24.04 LTS deepdiff No fix yet —
Ubuntu 22.04 LTS deepdiff No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-deepdiff 8.6.1-1.1 openSUSE-SU-2025:15536-1
openSUSE Leap 15.6 python-deepdiff 6.3.0-150600.3.3.1 SUSE-SU-2025:03127-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI deepdiff >= 5.0.0, < 8.6.1 8.6.1 GHSA-mw26-5g2v-hqw3

Advisories 2

References