CVE-2026-57204

NameCVE-2026-57204
Descriptionpypdf is a free and open-source pure-python PDF library. Prior to 6.13.3, a maliciously crafted PDF can cause DoS. An attacker who uses this vulnerability can craft a PDF which leads to large memory usage, as MAX_DECLARED_STREAM_LENGTH is sometimes ignored. This requires parsing a content stream without a /Length value. This issue has been fixed in version 6.13.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 Bugs1141339

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pypdf (PTS)bookworm3.4.1-1+deb12u1vulnerable
trixie5.4.0-1vulnerable
forky, sid6.9.2-2vulnerable
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)1141339
pypdf2source(unstable)(unfixed)

Notes

https://github.com/py-pdf/pypdf/security/advisories/GHSA-jm82-fx9c-mx94
https://github.com/py-pdf/pypdf/pull/3871
Fixed by: https://github.com/py-pdf/pypdf/commit/bbd083d1196d276d9c542418f77ac49e06de3ff1 (6.13.3)

Search for package or bug name: Reporting problems