CVE-2025-66019 Details
Description
pypdf is a free and open-source pure-python PDF library. Prior to version 6.4.0, an attacker who uses this vulnerability can craft a PDF which leads to a memory usage of up to 1 GB per stream. This requires parsing the content stream of a page using the LZWDecode filter. This issue has been patched in version 6.4.0.
A denial-of-service vulnerability has been identified in pypdf, a pure-Python PDF library, affecting versions prior to 6.4.0. The issue arises when the LZWDecode filter is used to parse a PDF page's content stream, allowing an attacker to craft a PDF that causes memory usage to spike up to 1 GB per stream. This excessive memory consumption can lead to application instability or crashes.
Users can upgrade to pypdf version 6.4.0 or later to address this vulnerability. If an immediate upgrade is not possible, the default LZW decoding output length limit can be manually set to 75,000,000 bytes in the code.
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.
Volerion
Assessed Nov 26, 2025CISA-ADP
Assessed Nov 26, 2025References 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://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos/ | CVE | |
| https://github.com/py-pdf/pypdf/commit/96186725e5e6f237129a58a97cd19204a9ce40b2 | [email protected] | Source CodeVendor |
| https://github.com/py-pdf/pypdf/releases/tag/6.4.0 | [email protected] | Release NotesVendor |
| https://github.com/py-pdf/pypdf/security/advisories/GHSA-m449-cwjh-6pw7 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-409 | Improper Handling of Highly Compressed Data (Data Amplification) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pypdf | < 6.4.0 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 20, 2026 | CVE Modified | CVE |
| Nov 26, 2025 | New CVE Received | [email protected] |
Volerion