XML Entity Expansion in PyPDF - #VU125811

 

XML Entity Expansion in PyPDF - #VU125811

Published: April 10, 2026


Vulnerability identifier: #VU125811
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-776
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Pypdf Project
Affected software:
PyPDF

Detailed vulnerability description

The vulnerability allows a remote attacker to cause excessive memory consumption.

The vulnerability exists due to improper restriction of recursive entity references in DTDs in the XMP metadata parser when parsing XMP metadata from a PDF file. A remote attacker can supply a specially crafted PDF to cause excessive memory consumption.

Exploitation requires the application to parse the XMP metadata.


Remediation

Install security update from vendor's website.

Sources