CVE-2025-66019

NameCVE-2025-66019
Descriptionpypdf 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pypdf (PTS)bookworm3.4.1-1+deb12u1fixed
forky, sid, trixie5.4.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pypdfsource(unstable)(not affected)

Notes

- pypdf <not-affected> (Vulnerable code introduced later)
https://github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7
Fixed by: https://github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2 (6.4.0)
This is a followup to GHSA-jfx9-29x2-rv3j (CVE-2025-62708) to align the
default limit with the one for zlib.

Search for package or bug name: Reporting problems