Nixpkgs security tracker

Login with GitHub

Suggestions search

With package: python313Packages.deepdiff

Found 1 matching suggestions

View:
Compact
Detailed
updated 3 months ago by @LeSuisse Activity log
  • Created suggestion
  • @LeSuisse accepted
  • @LeSuisse published on GitHub
DeepDiff has Memory Exhaustion DoS through SAFE_TO_IMPORT

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

deepdiff
  • ==>= 5.0.0, < 8.6.2

Matching in nixpkgs

pkgs.deepdiff

Deep Difference and Search of any Python object/data

Package maintainers

Upstream advisory: https://github.com/qlustered/deepdiff/security/advisories/GHSA-54jj-px8x-5w5q
Upstream patch: https://github.com/qlustered/deepdiff/commit/0d07ec21d12b46ef4e489383b363eadc22d990fb