CVE-2026-27026: CWE-770: Allocation of Resources Without Limits or Throttling in py-pdf pypdf
pypdf is a free and open-source pure-python PDF library. Prior to 6.7.1, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires a malformed /FlateDecode stream, where the byte-by-byte decompression is used. This vulnerability is fixed in 6.7.1.
AI Analysis
Technical Summary
CVE-2026-27026 is a vulnerability classified under CWE-770, which concerns allocation of resources without limits or throttling, found in the py-pdf pypdf library, a pure-Python PDF processing tool. Prior to version 6.7.1, the library's handling of /FlateDecode streams in PDF files is flawed. Specifically, if an attacker crafts a malformed /FlateDecode stream, the decompression process falls back to a byte-by-byte method that is computationally expensive and lacks safeguards to limit resource consumption. This can cause the decompression routine to consume excessive CPU time, leading to prolonged runtimes and effectively a denial of service (DoS) condition. The attack vector is local (AV:L), meaning the attacker must have the ability to supply or process a crafted PDF file on the target system. No privileges, authentication, or user interaction are required, increasing the risk in automated or batch PDF processing environments. The vulnerability does not impact confidentiality, integrity, or availability beyond resource exhaustion, and no known exploits have been observed in the wild. The issue was publicly disclosed and fixed in version 6.7.1 of pypdf. The CVSS v4.0 base score is 6.9, reflecting a medium severity rating due to the local attack vector and high impact on availability via resource exhaustion.
Potential Impact
The primary impact of CVE-2026-27026 is denial of service through resource exhaustion. Organizations that rely on pypdf for automated PDF processing, such as document management systems, content ingestion pipelines, or PDF rendering services, may experience service degradation or outages if exposed to maliciously crafted PDFs exploiting this vulnerability. This can disrupt business operations, delay workflows, and increase operational costs due to system slowdowns or crashes. Since the attack requires no authentication or user interaction, any system that automatically processes untrusted PDFs is at risk. Although the vulnerability does not lead to data breaches or code execution, the availability impact can be significant in high-volume or critical environments. The lack of known exploits reduces immediate risk, but the simplicity of the attack vector means it could be weaponized in the future. Organizations using vulnerable versions must consider the risk of denial of service, especially in sectors where PDF processing is integral, such as legal, finance, publishing, and government.
Mitigation Recommendations
To mitigate CVE-2026-27026, organizations should upgrade all instances of pypdf to version 6.7.1 or later, where the vulnerability is fixed. If immediate upgrade is not feasible, implement strict input validation and sanitization to detect and reject malformed or suspicious PDF files, particularly those with unusual /FlateDecode streams. Employ resource monitoring and limits on CPU and memory usage for PDF processing tasks to prevent excessive resource consumption. Consider sandboxing PDF processing operations to isolate potential denial of service impacts. Additionally, restrict the sources of PDF files to trusted origins where possible and apply network-level controls to limit exposure. Regularly audit and update dependencies to ensure known vulnerabilities are patched promptly. Finally, monitor logs and system performance for anomalies indicative of exploitation attempts.
Affected Countries
United States, Germany, United Kingdom, France, Japan, South Korea, Canada, Australia, India, Brazil
CVE-2026-27026: CWE-770: Allocation of Resources Without Limits or Throttling in py-pdf pypdf
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.7.1, an attacker who uses this vulnerability can craft a PDF which leads to long runtimes. This requires a malformed /FlateDecode stream, where the byte-by-byte decompression is used. This vulnerability is fixed in 6.7.1.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-27026 is a vulnerability classified under CWE-770, which concerns allocation of resources without limits or throttling, found in the py-pdf pypdf library, a pure-Python PDF processing tool. Prior to version 6.7.1, the library's handling of /FlateDecode streams in PDF files is flawed. Specifically, if an attacker crafts a malformed /FlateDecode stream, the decompression process falls back to a byte-by-byte method that is computationally expensive and lacks safeguards to limit resource consumption. This can cause the decompression routine to consume excessive CPU time, leading to prolonged runtimes and effectively a denial of service (DoS) condition. The attack vector is local (AV:L), meaning the attacker must have the ability to supply or process a crafted PDF file on the target system. No privileges, authentication, or user interaction are required, increasing the risk in automated or batch PDF processing environments. The vulnerability does not impact confidentiality, integrity, or availability beyond resource exhaustion, and no known exploits have been observed in the wild. The issue was publicly disclosed and fixed in version 6.7.1 of pypdf. The CVSS v4.0 base score is 6.9, reflecting a medium severity rating due to the local attack vector and high impact on availability via resource exhaustion.
Potential Impact
The primary impact of CVE-2026-27026 is denial of service through resource exhaustion. Organizations that rely on pypdf for automated PDF processing, such as document management systems, content ingestion pipelines, or PDF rendering services, may experience service degradation or outages if exposed to maliciously crafted PDFs exploiting this vulnerability. This can disrupt business operations, delay workflows, and increase operational costs due to system slowdowns or crashes. Since the attack requires no authentication or user interaction, any system that automatically processes untrusted PDFs is at risk. Although the vulnerability does not lead to data breaches or code execution, the availability impact can be significant in high-volume or critical environments. The lack of known exploits reduces immediate risk, but the simplicity of the attack vector means it could be weaponized in the future. Organizations using vulnerable versions must consider the risk of denial of service, especially in sectors where PDF processing is integral, such as legal, finance, publishing, and government.
Mitigation Recommendations
To mitigate CVE-2026-27026, organizations should upgrade all instances of pypdf to version 6.7.1 or later, where the vulnerability is fixed. If immediate upgrade is not feasible, implement strict input validation and sanitization to detect and reject malformed or suspicious PDF files, particularly those with unusual /FlateDecode streams. Employ resource monitoring and limits on CPU and memory usage for PDF processing tasks to prevent excessive resource consumption. Consider sandboxing PDF processing operations to isolate potential denial of service impacts. Additionally, restrict the sources of PDF files to trusted origins where possible and apply network-level controls to limit exposure. Regularly audit and update dependencies to ensure known vulnerabilities are patched promptly. Finally, monitor logs and system performance for anomalies indicative of exploitation attempts.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-17T03:08:23.491Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6998e47bbe58cf853bd9f76d
Added to database: 2/20/2026, 10:47:23 PM
Last enriched: 2/28/2026, 12:36:34 PM
Last updated: 4/5/2026, 12:50:50 AM
Views: 112
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.