CVE-2026-27628

7.5

py-pdf · pypdf

The pypdf library is vulnerable to an infinite loop when processing a maliciously crafted PDF file, potentially leading to a denial of service.

Executive summary

A vulnerability in the pypdf library allows unauthenticated remote attackers to trigger an infinite loop, resulting in a denial of service condition.

Vulnerability

This vulnerability, classified as CWE-835, occurs when the library processes a specifically crafted PDF file that contains a loop with an unreachable exit condition. The attack is unauthenticated and requires the victim to process the malicious file.

Business impact

The exploitation of this vulnerability results in a denial of service by consuming system resources until the application crashes or becomes unresponsive. While the CVSS score of 7.5 indicates a high severity due to the potential for resource exhaustion, the actual impact is limited to the process handling the file. Organizations relying on pypdf for automated document processing services may experience significant operational downtime if their ingestion pipelines are targeted.

Remediation

Immediate Action: Update the pypdf library to version 6.7.2 or later via your package manager, such as pip.

Proactive Monitoring: Monitor application logs for unexpected resource spikes or processes that remain active for abnormal durations during PDF ingestion tasks.

Compensating Controls: Implement resource limits, such as timeouts or CPU quotas, on processes that handle untrusted user-uploaded PDF files to mitigate the impact of an infinite loop.

Exploitation status

Public Exploit Available: No

Analyst recommendation

Given the availability of a patch and the potential for service disruption, administrators should prioritize updating the pypdf library across all affected environments. Ensuring that dependency management systems are updated to include version 6.7.2 will effectively mitigate the risk of denial of service attacks targeting document processing workflows.

More py-pdf CVEs

Sources