Patch Ticker
EnglishEN
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

All Incidents of 2026-12-05

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)

Show 2 more