CVE-2025-55197

NameCVE-2025-55197
Descriptionpypdf is a free and open-source pure-python PDF library. Prior to version 6.0.0, an attacker can craft a PDF which leads to the RAM being exhausted. This requires just reading the file if a series of FlateDecode filters is used on a malicious cross-reference stream. Other content streams are affected on explicit access. This issue has been fixed in 6.0.0. If an update is not possible, a workaround involves including the fixed code from pypdf.filters.decompress into the existing filters file.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1111139

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pypdf (PTS)bookworm3.4.1-1+deb12u1vulnerable
forky, sid, trixie5.4.0-1vulnerable
pypdf2 (PTS)bullseye1.26.0-4+deb11u1vulnerable
bookworm2.12.1-3+deb12u1vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pypdfsource(unstable)(unfixed)1111139
pypdf2source(unstable)(unfixed)

Notes

[trixie] - pypdf <no-dsa> (Minor issue)
[bookworm] - pypdf <no-dsa> (Minor issue)
[bookworm] - pypdf2 <no-dsa> (Minor issue)
[bullseye] - pypdf2 <postponed> (Minor issue)
https://github.com/py-pdf/pypdf/security/advisories/GHSA-7hfw-26vp-jp8m
https://github.com/py-pdf/pypdf/issues/3429
https://github.com/py-pdf/pypdf/pull/3430
Fixed by: https://github.com/py-pdf/pypdf/commit/bb3a69030fde7da545229438ff327b8c971cef49 (6.0.0)

Search for package or bug name: Reporting problems