Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft PDF with inflated image size declarations
-
DeliveryDeliver PDF to target parsing endpoint
-
Exploitpypdf parses image metadata
-
ExecutionAllocates memory matching declared size
-
PersistHost process memory exhausted
-
ImpactService degradation or OOM condition
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | The only prerequisite is the ability to supply a crafted PDF to any code path that invokes pypdf's image parsing functionality. No authentication, account, or special privilege is required (PR:N per CVSS 4.0). No non-default configuration is needed - the vulnerable behavior occurs in the default image-parsing routine. Exploitation is limited to availability impact only; there is no known path to code execution or data exfiltration from this vulnerability alone. Applications that process only PDFs from trusted, internal sources are significantly less exposed. Versions 6.14.0 and later are not affected. |
| Impact | The CVSS 4.0 score of 6.9 (VA:L) reflects a moderate availability impact with no confidentiality or integrity dimension, consistent with a resource-exhaustion denial-of-service. The attack vector is network (AV:N), complexity is low (AC:L), and no privileges or user interaction are required (PR:N/UI:N), meaning any exposed parsing endpoint is reachable by an unauthenticated attacker. The VA:L rating (rather than VA:H) suggests the library does not necessarily crash the interpreter - sustained memory growth rather than immediate OOM kill is the expected behavior, though in memory-constrained environments the impact could escalate. EPSS data was not provided; without it, statistical exploitation probability cannot be quantified. The vulnerability is not in CISA KEV and no POC has been identified, placing real-world exploitation risk in the speculative range. The notable inconsistency: the source tags include 'Information Disclosure', yet the CVSS vector (VC:N/VI:N) confirms no confidentiality or integrity impact - that tag appears to be a mistagging or vendor artifact and should not influence risk decisions. For applications that accept PDF uploads from external users or parse PDFs in automated pipelines, this is a credible DoS vector and warrants prompt patching. For internal-only tooling processing trusted PDFs, risk is substantially lower. |
| Exploit ScenarioDerived | An attacker uploads or delivers a maliciously crafted PDF to a web application or automated pipeline that uses pypdf for document processing. The PDF contains image objects with declared size values in the gigabyte range but minimal actual data. When pypdf parses the image, it allocates memory proportional to the declared size, causing the host process to consume excessive RAM - potentially degrading or crashing the service for legitimate users. No exploit code has been publicly identified, but the attack requires only the ability to craft a PDF, which demands no specialized knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 08, 2026
Uncontrolled memory allocation in pypdf prior to 6.14.0 allows remote, unauthenticated attackers to exhaust host memory by submitting a crafted PDF containing image metadata with inflated declared sizes that vastly exceed the actual embedded image data. Any application that uses pypdf to parse untrusted PDFs is exposed; the library allocates memory proportional to the declared (attacker-controlled) size rather than the actual data length. No public exploit code has been identified and this vulnerability is not listed in the CISA KEV catalog at time of analysis.
RemediationAI
Upgrade pypdf to version 6.14.0 or later, which is the vendor-released patch addressing this issue (https://github.com/py-pdf/pypdf/releases/tag/6.14.0). The underlying fix is available in commit c64583be16b8e8763d8777075f8ecbf382014b7a and pull request #3888 (https://github.com/py-pdf/pypdf/pull/3888). If an immediate upgrade is not feasible, apply resource controls at the application layer: restrict the maximum file size of PDFs accepted for parsing, enforce per-request memory limits using Python resource limits or container cgroup controls, and run the parsing process in an isolated worker with a memory cap so that exhaustion kills only the worker rather than the host application. These workarounds add operational overhead and do not address the root cause; upgrade to 6.14.0 as soon as practicable.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pypdf (CPE: cpe:2.3:a:py-pdf:pypdf:*:*:*:*:*:*:*:*) is a pure-Python library for reading, writing, and transforming PDF documents. The root cause is CWE-789 (Uncontrolled Memory Allocation): during image parsing, the library trusts the declared image dimension or buffer size values embedded in the PDF structure rather than bounding allocation against the actual compressed data size present in the stream. PDF image objects can declare arbitrary width/height or buffer-length values independently of the actual payload, and pypdf honored those declarations without validation, leading to allocation of arbitrarily large memory regions. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms no special attack prerequisites beyond delivering a malformed PDF to a parsing endpoint.
Know when Pypdf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Network-delivered PDF, no auth or interaction needed; availability impact is low (memory exhaustion, not guaranteed crash); no confidentiality or integrity impact per description.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
pypdf is a free and open-source pure-python PDF library. Prior to 6.14.0, an attacker can craft a PDF with declared image size values that are much too large compared to the actual data, causing large memory usage in pypdf image parsing. This issue is fixed in version 6.14.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Memory exhaustion while parsing crafted PDFs in pypdf versions prior to 6.21.3 allows an attacker to drive a consuming p
Denial of service in pypdf before 6.21.3: retrieving the page count (for example via len(reader.pages) or get_num_pages(
Memory exhaustion in the pypdf PDF library before 6.21.3 allows a small, deliberately malformed PDF dictionary to blow u
pypdf before 6.21.3 can be driven into excessive CPU consumption when an application retrieves page labels from a specia
Cloning or duplicating a crafted cyclic DictionaryObject with pypdf before 6.21.4 can hang the calling process in an inf
Parsing a crafted PDF with pypdf before 6.21.4 can drive disproportionate memory consumption when the library enumerates
Denial of service in pypdf prior to 6.21.4 lets remote attackers hang a PDF-processing thread by supplying an incomplete
Infinite loop denial of service in pypdf prior to 6.16.0 allows any attacker who can supply a crafted PDF to a pypdf-bas
Infinite loop denial-of-service in pypdf prior to 6.13.1 allows an attacker to hang any process that merges a crafted PD
pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. Rat
pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. Rat
pypdf is an open source, pure-python PDF library. Rated medium severity (CVSS 5.5), this vulnerability is no authenticat
EUVD-2026-42343
GHSA-5qjq-93h5-hrgp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB