Elevated
pypdf inline image parsing memory exhaustion causes denial of service
CVE-2026-145091 and 4 more
A malicious PDF can freeze programs that use the pypdf Python library.
- CVE
- CVE-2026-145091 and 4 more
- Score
- CVSS 8.7 · CVE-2026-145091
- Public date
- 2026-11-18
- First seen
8.7
Products
Disclosed together pypdf
Mitigation
Update pypdf to 7.1.1 or later. If you cannot yet, apply the changes from PR #4460 for CVE-2026-145091, PR #4456 for CVE-2026-145085, and PR #4457 for CVE-2026-145082. For the other CVEs, the update is the only fix.
Summary
A malicious PDF can make pypdf use excessive memory on its inline image fallback parsing path, stopping processing. Versions before 7.1.1 are affected, and the same fixed version also fixes other memory exhaustion flaws, including one in cross-reference stream handling.
Affected when
- Parsing untrusted PDFs with pypdf
- CVE-2026-145091 processing a content stream that takes the inline image fallback path
- CVE-2026-145085 opening a PDF with a hybrid cross-reference table
- CVE-2026-145082 accessing page labels with a very large prefix in the PDF
- CVE-2026-145079 accessing a stream that uses the /ASCIIHexDecode filter
- CVE-2026-145060 opening a PDF with many cross-reference streams
2 other Incidents of this product in the last 30 days
Incidents by product: pypdf
Other recent Incidents of pypdf
5 CVEs (every link below opens in a new tab)
Read the advisory · github.com (opens in a new tab)
Each of the 5 CVEs (every link below opens in a new tab)
- CVE-2026-145091Lets a PDF overuse memory on the inline image fallback path, stopping the service. CVSS 8.7 CVE-2026-145091 advisory · CVE-2026-145091 write-up
- CVE-2026-145085Bypasses cross-reference stream entry limits, overusing resources and stopping the service. CVSS 8.7 CVE-2026-145085 advisory · CVE-2026-145085 write-up
- CVE-2026-145082A very large page label prefix exhausts memory. CVSS 8.7 CVE-2026-145082 advisory · CVE-2026-145082 write-up
Show 2 more
- CVE-2026-145079A crafted ASCIIHexDecode filter stream exhausts memory. CVSS 8.7 CVE-2026-145079 advisory · CVE-2026-145079 write-up
- CVE-2026-145060Unneeded cross-reference streams kept in memory exhaust memory. CVSS 8.7 CVE-2026-145060 advisory · CVE-2026-145060 write-up