CVE-2026-137937: PDFio before 1.6.5 Out-of-Bounds Read/Write via IV-Only AES-Encrypted Strings
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications using PDFio versions before 1.6.5 are exposed if they open crafted AES-encrypted PDFs. The affected path is reached when the file is opened with pdfioFileOpen().
What must an attacker provide to trigger the issue?
The attacker must supply a specially crafted AES-encrypted PDF containing an encrypted string or binary value that consists only of the 16-byte initialization vector. Processing that PDF can cause an out-of-bounds read and write, resulting in a crash or heap-memory corruption.
What is the remediation?
Upgrade PDFio to version 1.6.5 or later. The referenced fix addresses the integer underflow that occurs while handling PKCS#7 padding before an AES block has been decrypted.