Memory Exhaustion Due to XMP Metadata in pypdf by PyPDF
CVE-2026-40260

6.9MEDIUM

Key Information:

Vendor

Py-PDF

Status
Vendor
CVE Published:
16 April 2026

What is CVE-2026-40260?

The pypdf library, a pure-Python PDF handling tool, is susceptible to a memory exhaustion issue due to manipulated XMP metadata. Attackers can craft specially designed PDF files that exploit this vulnerability, leading to excessive memory consumption during parsing. This behavior can result in degraded performance or denial of service. The issue has been resolved in version 6.10.0, emphasizing the importance of updating to ensure security.

Affected Version(s)

pypdf < 6.10.0

References

CVSS V4

Score:
6.9
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.