Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. deepdiff
  4. ›
  5. CVE-2026-33155

CVE-2026-33155: DeepDiff has Memory Exhaustion DoS through SAFE_TO_IMPORT

March 18, 2026

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.

References

  • github.com/advisories/GHSA-54jj-px8x-5w5q
  • github.com/seperman/deepdiff
  • github.com/seperman/deepdiff/commit/0d07ec21d12b46ef4e489383b363eadc22d990fb
  • github.com/seperman/deepdiff/security/advisories/GHSA-54jj-px8x-5w5q
  • nvd.nist.gov/vuln/detail/CVE-2026-33155

Code Behaviors & Features

Detect and mitigate CVE-2026-33155 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.0.0 before 8.6.2

Fixed versions

  • 8.6.2

Solution

Upgrade to version 8.6.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/deepdiff/CVE-2026-33155.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 19 Mar 2026 16:05:20 +0000.