Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-28351: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf

0
Medium
VulnerabilityCVE-2026-28351cvecve-2026-28351cwe-400
Published: Fri Feb 27 2026 (02/27/2026, 20:59:16 UTC)
Source: CVE Database V5
Vendor/Project: py-pdf
Product: pypdf

Description

pypdf is a free and open-source pure-python PDF library. Prior to version 6.7.4, an attacker who uses this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the content stream using the RunLengthDecode filter. This has been fixed in pypdf 6.7.4. As a workaround, consider applying the changes from PR #3664.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/07/2026, 21:12:19 UTC

Technical Analysis

CVE-2026-28351 is a vulnerability classified under CWE-400 (Uncontrolled Resource Consumption) affecting the py-pdf pypdf library, a pure Python library used for PDF processing. Versions prior to 6.7.4 are vulnerable to an attack where an adversary crafts a malicious PDF file that exploits the RunLengthDecode filter during content stream parsing. This crafted PDF triggers excessive memory allocation, leading to large memory usage and potentially exhausting system resources. The vulnerability does not require any authentication or user interaction, and it can be triggered remotely by simply processing the malicious PDF. The root cause lies in insufficient validation and control over resource allocation when decoding streams using the RunLengthDecode filter. The issue was addressed and fixed in version 6.7.4 of pypdf, and a workaround is available by applying the changes from pull request #3664. Although no known exploits have been reported in the wild, the vulnerability poses a risk of denial of service (DoS) attacks against applications that rely on pypdf for PDF parsing, especially those processing untrusted or user-supplied PDF files. The CVSS v4.0 base score is 6.9, reflecting a medium severity level due to the ease of exploitation and potential impact on availability.

Potential Impact

The primary impact of CVE-2026-28351 is denial of service caused by excessive memory consumption when processing maliciously crafted PDF files. This can lead to application crashes, degraded performance, or complete service outages in systems that utilize vulnerable versions of pypdf for PDF parsing. Organizations that integrate pypdf in document processing pipelines, web applications, or automated PDF handling services are at risk. Attackers can exploit this vulnerability remotely without authentication or user interaction, increasing the attack surface. While the vulnerability does not directly compromise confidentiality or integrity, the availability impact can disrupt business operations, especially in environments with high volumes of PDF processing or where PDFs are accepted from untrusted sources. The lack of known exploits in the wild reduces immediate risk but does not eliminate the potential for future attacks. Systems with limited memory resources or those running in multi-tenant environments may be particularly vulnerable to resource exhaustion attacks leveraging this flaw.

Mitigation Recommendations

To mitigate CVE-2026-28351, organizations should immediately upgrade all instances of the pypdf library to version 6.7.4 or later, where the vulnerability is fixed. If upgrading is not immediately feasible, applying the changes from pull request #3664 as a temporary workaround can reduce risk. Additionally, implement strict input validation and filtering to restrict or sanitize PDF files from untrusted sources before processing. Employ resource limiting techniques such as memory quotas or sandboxing for PDF parsing processes to contain potential resource exhaustion. Monitoring and alerting on abnormal memory usage patterns during PDF processing can help detect exploitation attempts early. Consider isolating PDF processing workloads in separate containers or virtual machines to prevent impact on critical systems. Regularly review and update dependencies to ensure timely application of security patches. Finally, educate developers and system administrators about the risks of processing untrusted PDFs and the importance of using updated libraries.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-26T18:38:13.890Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69a2087132ffcdb8a2724a71

Added to database: 2/27/2026, 9:11:13 PM

Last enriched: 3/7/2026, 9:12:19 PM

Last updated: 4/14/2026, 10:41:04 AM

Views: 124

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses