CVE-2026-40260
Received Received - Intake
Memory Exhaustion via XMP Metadata in pypdf Before

Publication date: 2026-04-17

Last updated on: 2026-04-22

Assigner: GitHub, Inc.

Description
pypdf is a free and open-source pure-python PDF library. In versions prior to 6.10.0, manipulated XMP metadata entity declarations can exhaust RAM. An attacker who exploits this vulnerability can craft a PDF which leads to large memory usage. This requires parsing the XMP metadata. This issue has been fixed in version 6.10.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-17
Last Modified
2026-04-22
Generated
2026-05-07
AI Q&A
2026-04-17
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
pypdf_project pypdf to 6.10.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-776 The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :

Exploiting this vulnerability can cause the application using pypdf to consume a large amount of RAM, potentially leading to performance degradation or denial of service due to resource exhaustion.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, upgrade the pypdf library to version 6.10.0 or later, where the issue has been fixed.


Can you explain this vulnerability to me?

This vulnerability exists in the pypdf library versions prior to 6.10.0. It involves manipulated XMP metadata entity declarations within a PDF file that can cause excessive RAM usage when the metadata is parsed.

An attacker can craft a specially designed PDF that triggers this behavior, leading to large memory consumption during processing.

This issue was fixed in version 6.10.0 of pypdf.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart