Описание
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 Intelligence | exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 | Fix deferred | ||
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-ocp-rag-rhel9 | Fix deferred | ||
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 | Not affected | ||
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/lightspeed-chatbot-rhel8 | Fix deferred | ||
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rhelai3/bootc-cuda-rhel9 | Fix deferred | ||
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rhelai3/bootc-gaudi-rhel9 | Fix deferred | ||
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rhelai3/bootc-rocm-rhel9 | Fix deferred | ||
| Red Hat Enterprise Linux AI (RHEL AI) 3 | rhelai3/disk-image-cuda-rhel9 | Fix deferred | ||
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-llama-stack-core-rhel9 | Fix deferred | ||
| Red Hat Quay 3 | quay/quay-rhel8 | Fix deferred |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
6.5 Medium
CVSS3
Связанные уязвимости
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.
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.
pypdf is a free and open-source pure-python PDF library. In versions p ...
pypdf: Manipulated XMP metadata entity declarations can exhaust RAM
6.5 Medium
CVSS3