CVE-2025-62708

NameCVE-2025-62708
Descriptionpypdf is a free and open-source pure-python PDF library. Prior to version 6.1.3, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the content stream of a page using the LZWDecode filter. This has been fixed in pypdf version 6.1.3.
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)
Debian Bugs1118756

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-1vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pypdfsourcebookworm(not affected)
pypdfsource(unstable)(unfixed)1118756

Notes

[trixie] - pypdf <no-dsa> (Minor issue)
[bookworm] - pypdf <not-affected> (Vulnerable code introduced later)
https://github.com/py-pdf/pypdf/security/advisories/GHSA-jfx9-29x2-rv3j
https://github.com/py-pdf/pypdf/pull/3502
Introduced with: https://github.com/py-pdf/pypdf/commit/e825ac07ea89c78962646245e348b934d48f9629 (5.1.0)
Fixed by: https://github.com/py-pdf/pypdf/commit/e51d07807ffcdaf18077b9486dadb3dc05b368da (6.1.3)

Search for package or bug name: Reporting problems