Read the docs

Excessive memory usage in pypdf via ASCIIHexDecode filter

Priority MEDIUM 41CWE-407Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-407.

Summary

pypdf before 7.1.1 contains an inefficient algorithm in its ASCIIHexDecode filter handling, classified as CWE-407. An unauthenticated remote attacker can supply a crafted PDF with a malicious stream using the /ASCIIHexDecode filter that exhausts memory when accessed, causing denial of service.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

pypdf before 7.1.1 contains an uncontrolled resource consumption vulnerability that allows attackers to cause large memory usage by supplying a crafted PDF. Attackers can embed a malicious stream using the /ASCIIHexDecode filter that, when accessed, exhausts memory and causes denial of service.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed pypdf (py-pdf): 7.1.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
py-pdfpypdfbefore 7.1.17.1.1Patch availableCNA
  • pypdf Vendorpy-pdf Affected before 7.1.1 Fixed in 7.1.1 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*——py-pdf
  • cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:* Versions — — ·py-pdf

Remediation

Upgrade pypdf to version 7.1.1, which fixes the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA pypdf (py-pdf) Fixed in 7.1.1

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    py-pdf pypdf 7.1.1

    5 records Highest priority Priority MEDIUM 5 MEDIUM

    Other records, highest priority first

    • TI-2026-104260 Memory exhaustion in pypdf inline image fallback parsingPriority MEDIUM 53
    • TI-2026-104254 Limit bypass in pypdf lets crafted PDFs exhaust resourcesPriority MEDIUM 53
    • TI-2026-104251 Excessive memory usage in pypdf via page label prefixPriority MEDIUM 53

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-145079
  2. 2026-12-04 CISA SSVC decision points changed

References

  • TI-2026-79334 Exponential SVG use expansion exhausts CPU and memory in fpdf2 CVSS 3.1MEDIUM 6.5
  • TI-2023-18601 Infinite Loop when reading malformed objects in pypdf CVSS 3.1MEDIUM 6.5
  • TI-2023-18305 Infinite Loop when a comment isn't followed by a character in pypdf CVSS 3.1MEDIUM 6.2
  • TI-2022-08670 Manipulated inline images can cause Infinite Loop in PyPDF2 CVSS 3.1MEDIUM 6.2
  • TI-2026-104260 Memory exhaustion in pypdf inline image fallback parsing CVSS 4.0HIGH 8.7
  • TI-2026-104254 Limit bypass in pypdf lets crafted PDFs exhaust resources CVSS 4.0HIGH 8.7
See all 82 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences