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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | deepdiff | 8.6.1-1 | — |
| Debian 13 | deepdiff | 8.1.1-4+deb13u1 | — |
| Debian 12 | deepdiff | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | deepdiff | No fix yet | — |
| Ubuntu 24.04 LTS | deepdiff | No fix yet | — |
| Ubuntu 22.04 LTS | deepdiff | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | deepdiff | >= 5.0.0, < 8.6.1 | 8.6.1 | GHSA-mw26-5g2v-hqw3 |
Advisories 2
- openSUSE-SU-2025:15536-1 python311-deepdiff-8.6.1-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:03127-1 Security update for python-deepdiff SUSE / openSUSE Security Updates · Feb 4, 2026