Prior to 6.18.1, a crafted PDF can place unusually large source-code or destination-string tokens in a font /ToUnicode mapping, causing pypdf/_cmap.py parse_bfchar to decode and retain oversized valu…
- CVSS
- 7.5High
- Chance of exploitation (EPSS)
- 0.34%
- Published
- Sep 30, 2026
- In the news
- Not yet
What to do
A serious resource exhaustion flaw in Pypdf that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Affected versions
- Pypdf
- < 6.18.1
Description
pypdf is a free and open-source pure-python PDF library. Prior to 6.18.1, a crafted PDF can place unusually large source-code or destination-string tokens in a font /ToUnicode mapping, causing pypdf/_cmap.py parse_bfchar to decode and retain oversized values during operations such as text extraction and consume excessive memory. This is a second follow-up to earlier /ToUnicode resource-consumption fixes and is limited to the remaining token-length path. This issue is fixed in version 6.18.1.
Affected products
Get alerts for these →Timeline 4
Latest change: Tenable Cloud Security plugin 497413: SCA: security update for pypdf (GHSA-fp3h-c4fm-7vvf) (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Dec 3, 2026
Sun, Nov 1, 2026
Wed, Sep 30, 2026
- CVECVE-2026-102995 published (CVSS 7.5)CVE Program · 21:17 UTC
References 4
- github.com Patch /py-pdf/pypdf/commit/319d0b823ce2c311a2435e9fd93c13994d32bb51
- github.com Patch /py-pdf/pypdf/pull/4071
- github.com Vendor Advisory /py-pdf/pypdf/security/advisories/GHSA-fp3h-c4fm-7vvf
- github.com /py-pdf/pypdf/releases/tag/6.18.1