Elevated
pypdf excessive memory use when loading crafted PDF images
CVE-2026-137549
A PDF reading program can freeze and slow down a server.
- CVE
- CVE-2026-137549 (opens in a new tab)
- Score
- CVSS 8.7
- Public date
- 2026-11-10
- First seen
8.7
Products
Mitigation
Update to pypdf 7.0.1 or later. If you cannot upgrade yet, apply the changes from PR #4374.
Summary
pypdf underestimates data sizes for some image modes, which defeats its size limits. A crafted PDF can make it use large amounts of memory and stop working. Users of pypdf before 7.0.1 are affected.
Affected when
Loading PDFs with image filters that have no size limit of their own
1 other Incident of this product in the last 30 days
Incidents by product: pypdf
Other recent Incidents of pypdf
Distribution packages (3) (every link below opens in a new tab)
- Debian 13 (trixie)pypdf · not fixed yet
- Debian 12 (bookworm)pypdf · not fixed yet
- Debian 12 (bookworm)pypdf2 · not fixed yet
Sources: Debian Security Tracker
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- Write-up: vulncheck.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)