CVSS 4.0
6.9 mediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NMedium (6.9) in py-pdf pypdf. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in pypdf 6.10.0.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Lpypdf (PyPI): fixed in 6.10.0Explain CVE-2026-40260 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40260?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40260?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40260 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| py-pdf:pypdf | before 6.10.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-3crg-w4f6-42mx | PyPI | pypdf | <6.10.0 | 6.10.0 |
| PYSEC-2026-3006 | PyPI | pypdf | <6.10.0 | 6.10.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | pypdf, pypdf2 | no fix listed | DEBIAN-CVE-2026-40260 |
| Debian | 13 | pypdf | no fix listed | DEBIAN-CVE-2026-40260 |
| Debian | 14 | pypdf | 6.19.0-1 | DEBIAN-CVE-2026-40260 |
| Ubuntu | 20.04:LTS, 22.04:LTS, Pro:16.04:LTS and 1 more | pypdf2 | no fix listed | UBUNTU-CVE-2026-40260 |
| Ubuntu | 24.04:LTS | pypdf, pypdf2 | no fix listed | UBUNTU-CVE-2026-40260 |
| Ubuntu | 25.10, 26.04:LTS, 26.10 | pypdf | no fix listed | UBUNTU-CVE-2026-40260 |
| openSUSE | Tumbleweed | python-PyPDF2 | 2.11.1-9.1 | openSUSE-SU-2026:10582-1 |
| openSUSE | Tumbleweed | python-pypdf | 6.10.2-1.1 | openSUSE-SU-2026:10583-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.
Red Hat rates this Moderate.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| 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 | |
| Red Hat Quay 3 | quay/quay-rhel9 | Fix deferred |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40260.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.