Integer underflow in PDFio AES decryption causes out-of-bounds memory access
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
PDFio before 1.6.5 contains an integer underflow (CWE-191) in _pdfioCryptoAESDecrypt(), which strips PKCS#7 padding before any AES block has been decrypted when an AES-encrypted string or binary value holds only its 16-byte IV. A local user with low privileges can supply a crafted AES-encrypted PDF file that, when opened with pdfioFileOpen(), makes the decrypted length underflow and causes out-of-bounds reads and writes. The result is a crash of the application or corruption of heap memory.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
Description from the CNA
PDFio before 1.6.5 contains an integer underflow in _pdfioCryptoAESDecrypt() in pdfio-aes.c, which strips PKCS#7 padding before any AES block has been decrypted when an AES-encrypted string or binary value holds only its 16-byte IV. Attackers can supply a crafted AES-encrypted PDF that, when opened with pdfioFileOpen(), makes the decrypted length underflow so that _pdfioValueDecrypt() reads and writes out of bounds, crashing the application or corrupting heap memory.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| michaelrsweet | pdfio | before 1.6.5 | 1.6.5 | Patch available | CNA |
- pdfio Vendormichaelrsweet Affected before 1.6.5 Fixed in 1.6.5 Patch available CNA
Remediation
The fixed version for pdfio is 1.6.5. The sources list no fixed version for pdfio other than 1.6.5.
Written with Claude Haiku 5.5 from the sources below · 2026-11-27
- Fix · CNA pdfio (michaelrsweet) Fixed in 1.6.5
Timeline
- 2026-11-27 Threatist record created from CVE-2026-137937
- 2026-11-27 Alias added: GHSA-8vvg-4p6q-69x4
References
More michaelrsweet vulnerabilities
- TI-2026-76283 Use after free in michaelrsweet mxml mxml_load_data CVSS 4.0MEDIUM 5.1
- TI-2026-74098 Off-by-one stack out-of-bounds write in Mini-XML mxml_strtod() CVSS 4.0LOW 2.0
- TI-2026-53919 PDFio < 1.6.5 Dangling Pointer via Dictionary String-Formatting CVSS 4.0HIGH 7.1
Sources
- CVE-2026-137937 · CVE Program
- CVE-2026-137937 · NVD
- FIRST EPSS
- GHSA-8vvg-4p6q-69x4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences