Py-pdf pypdf
pypdf: Possible large memory usage for large /ToUnicode streams (Follow-up 2)
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-400
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
py-pdf pypdf
- < 6.18.1
Fixed in 6.18.1
Mitigation
Upgrade pypdf to 6.18.1 or later.
References
- Vendor advisory github.com/py-pdf/pypdf/security/advisories/GH…
- Patch github.com/py-pdf/pypdf/pull/4071
- Patch github.com/py-pdf/pypdf/commit/319d0b823ce2c31…
1 more
- Release notes github.com/py-pdf/pypdf/releases/tag/6.18.1
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.