GitHub Advisoryadvisory · PyPI
GHSA-x284-j5p8-9c5p pypdf: Manipulated FlateDecode image dimensions can exhaust RAM
MEDIUM
Official page ↗
- Aliases
- CVE-2026-41314
- Ecosystem
- PyPI
- Packages
- pypdf
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-789
- Reviewed
- 2026-04-16
Affected packages
• PyPI pypdf: < 6.10.2 → fixed in 6.10.2
Description
Impact
An attacker who uses this vulnerability can craft a PDF which leads to the RAM being exhausted. This requires accessing an image using `/FlateDecode` with large size values.
Patches
This has been fixed in pypdf==6.10.2.
Workarounds
If you cannot upgrade yet, consider applying the changes from PR #3734.
Related
Alias · CVE (1)
- CVE-2026-41314 pypdf is a free and open-source pure-python PDF library. vulnerability
Weakness · CWE (1)
- CWE-789 Memory Allocation with Excessive Size Value weakness
References
- https://github.com/py-pdf/pypdf/security/advisories/GHSA-x284-j5p8-9c5p web
- https://nvd.nist.gov/vuln/detail/CVE-2026-41314 advisory
- https://github.com/py-pdf/pypdf/pull/3734 web
- https://github.com/py-pdf/pypdf/commit/ac734dab4eef92bcce50d503949b4d9887d89f11 web
- https://github.com/py-pdf/pypdf package
- https://github.com/py-pdf/pypdf/releases/tag/6.10.2 web