CVE-2026-41312 Details
Description
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 a stream compressed using `/FlateDecode` with a `/Predictor` unequal 1 and large predictor parameters. This has been fixed in pypdf 6.10.2. As a workaround, one may apply the changes from the patch manually.
A denial-of-service vulnerability has been identified in the pypdf library, specifically in versions prior to 6.10.2. The issue arises when a PDF is crafted to exploit the FlateDecode compression filter, particularly by using a Predictor value other than 1 and large predictor parameters. This manipulation can exhaust the system's RAM, leading to potential performance degradation or application failure.
Users can upgrade to pypdf version 6.10.2 or later, where this vulnerability has been fixed. If an immediate upgrade is not possible, the changes from the patch available in pull request #3734 can be applied manually.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11 | [email protected] | Patch |
| https://github.com/py-pdf/pypdf/pull/3734 | [email protected] | Issue TrackingPatch |
| https://github.com/py-pdf/pypdf/releases/tag/6.10.2 | [email protected] | Release Notes |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-7gw9-cf7v-778f | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-789 | Memory Allocation with Excessive Size Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pypdf project pypdf | < 6.10.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 22, 2026 | New CVE Received | [email protected] |