Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-40260

Опубликовано: 16 апр. 2026
Источник: redhat
CVSS3: 6.5

Описание

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.

A flaw was found in pypdf, a pure-python PDF library. A remote attacker can exploit this vulnerability by crafting a malicious PDF file containing manipulated XMP metadata entity declarations, which are data embedded within a PDF file. When the affected system parses this metadata, it can lead to excessive memory consumption. This memory exhaustion can result in a Denial of Service (DoS) condition, making the application or system unresponsive.

Отчет

Red Hat rates this vulnerability as Moderate impact with a CVSS score of 6.5. The vulnerable code is in pypdf's XMP metadata parser, which only runs when application code calls reader.xmp_metadata. Opening a PDF or extracting text does not trigger it. Red Hat products ship pypdf through LlamaIndex, which calls extract_text() and page_labels but never accesses XMP metadata. The vulnerable parser does not run in normal operation. Exploitation requires delivering a crafted PDF to an application that reads XMP metadata from untrusted files. If triggered, quadratic entity expansion can exhaust available memory. Red Hat ships these components in containers with memory limits, where this causes an OOM kill rather than gradual degradation.

Меры по смягчению последствий

Do not call reader.xmp_metadata on untrusted PDF input. The standard PDF metadata property (reader.metadata) uses a separate code path and is not affected. If you must process XMP metadata from untrusted PDFs, set memory limits on the process or container to contain the impact of a potential denial of service.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-chatbot-rhel8Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gaudi-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-rocm-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/disk-image-cuda-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-core-rhel9Fix deferred
Red Hat Quay 3quay/quay-rhel8Fix deferred

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-776
https://bugzilla.redhat.com/show_bug.cgi?id=2459094pypdf: pypdf: Denial of Service due to memory exhaustion via manipulated XMP metadata

6.5 Medium

CVSS3

Связанные уязвимости

CVSS3: 5.3
ubuntu
4 месяца назад

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.

CVSS3: 5.3
nvd
4 месяца назад

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.

CVSS3: 5.3
debian
4 месяца назад

pypdf is a free and open-source pure-python PDF library. In versions p ...

suse-cvrf
4 месяца назад

Security update for python-PyPDF2

CVSS3: 5.3
github
4 месяца назад

pypdf: Manipulated XMP metadata entity declarations can exhaust RAM

6.5 Medium

CVSS3