Description
DeepDiff is a project focused on Deep Difference and search of any Python data. From version 5.0.0 to before version 8.6.2, the pickle unpickler _RestrictedUnpickler validates which classes can be loaded but does not limit their constructor arguments. A few of the types in SAFE_TO_IMPORT have constructors that allocate memory proportional to their input (builtins.bytes, builtins.list, builtins.range). A 40-byte pickle payload can force 10+ GB of memory, which crashes applications that load delta objects or call pickle_load with untrusted data. This issue has been patched in version 8.6.2.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| seperman | deepdiff | >= 5.0.0, < 8.6.2 | — |
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 | 9.0.0-1 | — |
| Debian 13 | deepdiff | 8.1.1-4+deb13u1 | — |
| Debian 12 | deepdiff | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | deepdiff | No fix yet | — |
| Ubuntu 26.04 LTS | deepdiff | No fix yet | — |
| 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.2-1.1 | openSUSE-SU-2026:10417-1 |
| openSUSE Leap 15.6 | python-deepdiff | 6.3.0-150600.3.6.1 | SUSE-SU-2026:1094-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | deepdiff | >= 5.0.0, < 8.6.2 | 8.6.2 | GHSA-54jj-px8x-5w5q |
Advisories 2
- SUSE-SU-2026:1094-1 Security update for python-deepdiff SUSE / openSUSE Security Updates · Mar 28, 2026
- openSUSE-SU-2026:10417-1 python311-deepdiff-8.6.2-1.1 on GA media SUSE / openSUSE Security Updates · Mar 25, 2026