pypdf manipulated LZWDecode streams can exhaust RAM
pypdf is a free and open-source pure-python PDF library. Prior to version 6.4.0, an attacker who uses this vulnerability can craft a PDF which leads to a memory usage of up to 1 GB per stream. This requires parsing the content stream of a page using the LZWDecode filter. This issue has been patched in version 6.4.0.
References
-
https://github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7 x_refsource_CONFIRM
-
https://github.com/py-pdf/pypdf/releases/tag/6.4.0 x_refsource_MISC
Affected products
- ==< 6.4.0
Matching in nixpkgs
pkgs.capypdf
Fully color managed PDF generation library
pkgs.python312Packages.pypdf
Pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
pkgs.python313Packages.pypdf
Pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
pkgs.python312Packages.pypdf2
Pure-Python library built as a PDF toolkit
-
nixos-unstable pypdf2-3.0.1
- nixpkgs-unstable pypdf2-3.0.1
- nixos-unstable-small pypdf2-3.0.1
-
nixos-25.11 pypdf2-3.0.1
- nixpkgs-25.11-darwin pypdf2-3.0.1
pkgs.python312Packages.pypdf3
Pure-Python library built as a PDF toolkit
-
nixos-unstable pypdf3-1.0.6
- nixpkgs-unstable pypdf3-1.0.6
- nixos-unstable-small pypdf3-1.0.6
-
nixos-25.11 pypdf3-1.0.6
- nixpkgs-25.11-darwin pypdf3-1.0.6
pkgs.python313Packages.pypdf2
Pure-Python library built as a PDF toolkit
-
nixos-unstable pypdf2-3.0.1
- nixpkgs-unstable pypdf2-3.0.1
- nixos-unstable-small pypdf2-3.0.1
-
nixos-25.11 pypdf2-3.0.1
- nixpkgs-25.11-darwin pypdf2-3.0.1
pkgs.python313Packages.pypdf3
Pure-Python library built as a PDF toolkit
-
nixos-unstable pypdf3-1.0.6
- nixpkgs-unstable pypdf3-1.0.6
- nixos-unstable-small pypdf3-1.0.6
-
nixos-25.11 pypdf3-1.0.6
- nixpkgs-25.11-darwin pypdf3-1.0.6
pkgs.python312Packages.pypdfium2
Python bindings to PDFium
-
nixos-unstable pypdfium2-4.30.1
- nixpkgs-unstable pypdfium2-4.30.1
- nixos-unstable-small pypdfium2-4.30.1
-
nixos-25.11 pypdfium2-5.0.0
- nixpkgs-25.11-darwin pypdfium2-5.0.0
pkgs.python313Packages.pypdfium2
Python bindings to PDFium
-
nixos-unstable pypdfium2-4.30.1
- nixpkgs-unstable pypdfium2-4.30.1
- nixos-unstable-small pypdfium2-4.30.1
-
nixos-25.11 pypdfium2-5.0.0
- nixpkgs-25.11-darwin pypdfium2-5.0.0
Package maintainers
-
@jtojnar Jan Tojnar <jtojnar@gmail.com>
-
@javaes Jan van Esdonk <jan+dev@vanesdonk.de>
-
@ambroisie Bruno BELANYI <bruno.nixpkgs@belanyi.fr>
-
@booxter Ihar Hrachyshka <ihar.hrachyshka@gmail.com>