CVE-2026-41314 json
pypdf: Manipulated FlateDecode image dimensions can exhaust RAM
published 2026-04-16 6 mo ago modified 2026-11-02 6 d ago also GHSA-x284-j5p8-9c5p , PYSEC-2026-3026 , EUVD-2026-25116
- cvss
- 6.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
pypdf is a free and open-source pure-python PDF library. An attacker who uses a vulnerability present in versions prior to 6.10.2 can craft a PDF which leads to the RAM being exhausted. This requires accessing an image using `/FlateDecode` with large size values. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.
Patch / fix
- pypi pypdf 6.10.2
- py-pdf pypdf 6.10.2
- pypdf Debian 14 6.19.0-1
debian advisories DEBIAN-CVE-2026-41314
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-41314 updated cvss 5.5
pypdf: pypdf: Denial of Service via crafted PDF with large image sizes
-
Red Hat Lightspeed Core lightspeed-core/rag-tool-rhel9 Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-ocp-rag-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-25/lightspeed-chatbot-rhel8 Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/disk-image-cuda-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-llama-stack-core-rhel9 Red Hat Quay 3 quay/quay-rhel8, quay/quay-rhel9affected: workaround, no fix available “To mitigate this issue, avoid processing untrusted PDF files with applications utilizing the pypdf library. Restricting the sources of PDF files to trusted origins can reduce the risk of exploitation.”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 4.8 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| CNA | 4.0 | 4.8 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pypdf | <6.10.2 |
6.10.2 |
Affected products
- py-pdf pypdf
Classification
- Weakness
-
- CWE-789 Memory Allocation with Excessive Size Value
References
-
github.com
/py-pdf/pypdf/pull/3734
web, issue-tracking, patch
-
github.com
/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11
web, patch
-
github.com
/py-pdf/pypdf/security/advisories/GHSA-x284-j5p8-9c5p
web, patch, vendor-advisory
-
github.com
/py-pdf/pypdf/releases/tag/6.10.2
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-41314
advisory
-
github.com
/py-pdf/pypdf
package
-
pypi.org
/project/pypdf
package
-
github.com
/advisories/GHSA-x284-j5p8-9c5p
advisory
Sources
- CVE List CVE-2026-41314
- GitHub Advisory GHSA-x284-j5p8-9c5p
- NVD CVE-2026-41314
- OSV PYSEC-2026-3026
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.