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-27888: CWE-400: Uncontrolled Resource Consumption in py-pdf pypdf

0
Medium
VulnerabilityCVE-2026-27888cvecve-2026-27888cwe-400
Published: Thu Feb 26 2026 (02/26/2026, 00:42:00 UTC)
Source: CVE Database V5
Vendor/Project: py-pdf
Product: pypdf

Description

CVE-2026-27888 is a medium severity vulnerability in the pypdf library versions prior to 6. 7. 3, involving uncontrolled resource consumption (CWE-400). An attacker can craft a malicious PDF file that, when processed by pypdf and specifically when accessing the 'xfa' property with a stream compressed using /FlateDecode, causes excessive RAM consumption leading to denial of service. This vulnerability requires no user interaction, authentication, or privileges to exploit and can be triggered remotely by processing a malicious PDF. The issue has been fixed in pypdf version 6. 7. 3, and manual patching is recommended if upgrading is not immediately possible. There are no known exploits in the wild at this time. Organizations using vulnerable versions of pypdf in their PDF processing workflows should prioritize updating or patching to prevent potential denial of service attacks.

AI-Powered Analysis

AILast updated: 02/26/2026, 01:12:46 UTC

Technical Analysis

CVE-2026-27888 is a vulnerability classified under CWE-400 (Uncontrolled Resource Consumption) affecting the pypdf library, a widely used pure-Python PDF processing tool. Versions of pypdf prior to 6.7.3 are susceptible to this issue. The vulnerability arises when an attacker crafts a specially designed PDF file containing an XFA (XML Forms Architecture) stream compressed with the /FlateDecode filter. When the vulnerable pypdf library accesses the 'xfa' property of a PDF reader or writer object, it triggers excessive memory allocation due to improper handling of the compressed stream, leading to RAM exhaustion. This can cause the application or service using pypdf to crash or become unresponsive, effectively resulting in a denial of service (DoS). The vulnerability does not require any authentication or user interaction and can be exploited remotely by simply processing the malicious PDF file. The CVSS v4.0 base score is 6.6, reflecting a medium severity with network attack vector, low attack complexity, no privileges or user interaction required, and a high impact on availability. The issue was publicly disclosed on February 26, 2026, and fixed in pypdf version 6.7.3. No known exploits have been reported in the wild, but the vulnerability poses a risk to any system that automatically processes untrusted PDF files using affected pypdf versions. The recommended mitigation is to upgrade to pypdf 6.7.3 or later, or apply the patch manually if immediate upgrade is not feasible.

Potential Impact

The primary impact of CVE-2026-27888 is denial of service through resource exhaustion. Organizations that use pypdf to process PDFs—such as document management systems, web applications handling PDF uploads, automated PDF parsing services, or any backend system integrating pypdf—may experience application crashes or service outages when processing maliciously crafted PDFs. This can disrupt business operations, degrade user experience, and potentially lead to cascading failures if the affected service is critical. Although the vulnerability does not directly compromise confidentiality or integrity, the availability impact can be significant, especially in environments with high PDF processing volumes or automated workflows. Attackers can exploit this vulnerability remotely without authentication, increasing the risk of widespread disruption. The lack of known exploits in the wild suggests limited active exploitation currently, but the ease of exploitation and medium severity warrant proactive mitigation. Organizations relying on pypdf in security-sensitive or high-availability contexts should treat this vulnerability seriously to avoid operational disruptions.

Mitigation Recommendations

To mitigate CVE-2026-27888, organizations should immediately upgrade all instances of pypdf to version 6.7.3 or later, where the vulnerability is fixed. If upgrading is not immediately possible, apply the official patch manually to the affected versions to prevent exploitation. Additionally, implement input validation and filtering to restrict or sanitize PDF files before processing, especially from untrusted sources. Employ resource usage monitoring and limits on PDF processing services to detect and mitigate abnormal memory consumption patterns indicative of exploitation attempts. Consider sandboxing PDF processing components to isolate failures and prevent service-wide impact. Maintain up-to-date software inventories to identify all systems using pypdf and prioritize patching accordingly. Finally, monitor security advisories and threat intelligence feeds for any emerging exploit activity related to this vulnerability.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-24T15:19:29.716Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 699f9a40b7ef31ef0b726103

Added to database: 2/26/2026, 12:56:32 AM

Last enriched: 2/26/2026, 1:12:46 AM

Last updated: 2/26/2026, 2:18:37 AM

Views: 3

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 in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats