CVE-2026-33155

DeepDiff has Memory Exhaustion DoS through SAFE_TO_IMPORT

Published Mar 20, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

DeepDiff's deserialization routine can be misused with malicious pickles to fork constructors of built-in types that accept payload length, causing the program to allocate an extreme amount of memory. The result is a crash that denies service to legitimate users. The vulnerability stems from unchecked constructor arguments in the SAFE_TO_IMPORT classes, a classic CWE-400 style resource exhaustion bug.

Affected Systems

The issue affects the DeepDiff Python library, distributed by the vendor semperman, across every release from version 5.0.0 up to, but not including, 8.6.2. Applications that integrate DeepDiff and deserialize pickle data from untrusted sources are exposed.

Risk and Exploitability

With a CVSS score of 8.7 and an EPSS likelihood below 1 %, the vulnerability is high‑severity but not currently widely exploited. An attacker can remotely supply a crafted 40‑byte pickle payload to an application that loads or compares delta objects, triggering gigabyte‑scale memory allocation and a crash. The recent patch in 8.6.2 removes the unchecked constructor paths, mitigating the risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade DeepDiff to version 8.6.2 or later, which removes the unbounded constructor calls.
  • If upgrading is not immediately possible, strictly limit pickle deserialization to trusted data sources or replace the vulnerable library with a vetted alternative.

Generated by OpenCVE AI on April 14, 2026 at 21:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-54jj-px8x-5w5q DeepDiff has Memory Exhaustion DoS through SAFE_TO_IMPORT
History
Type Values Removed Values Added
First Time appeared Qluster
Qluster deepdiff
Weaknesses CWE-770
CPEs cpe:2.3:a:qluster:deepdiff:*:*:*:*:*:*:*:*
Vendors & Products Qluster
Qluster deepdiff
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-502
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Seperman
Seperman deepdiff
Vendors & Products Seperman
Seperman deepdiff
Type Values Removed Values Added
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.
Title DeepDiff has Memory Exhaustion DoS through SAFE_TO_IMPORT
Weaknesses CWE-400
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-502

    Deserialization of Untrusted Data

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 24, 2026, 2:03 AM
Reserved
Mar 17, 2026, 9:17 PM
Status
Analyzed
Published
Mar 20, 2026, 9:17 PM
Modified
Jun 17, 2026, 10:37 AM
Severity
Moderate
Public date
Mar 20, 2026, 8:25 PM