CVE-2026-137937

PDFio before 1.6.5 Out-of-Bounds Read/Write via IV-Only AES-Encrypted Strings

Published Nov 27, 2026 CVSS 4.0 · 6.9 Medium EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

PDFio before version 1.6.5 contains an integer underflow in the decryption routine when handling AES‑encrypted strings or binary values that contain only a 16‑byte initialization vector (IV). The underflow causes the code to strip PKCS#7 padding before any AES block has been decrypted, leading to an out‑of‑bounds read and write within _pdfioValueDecrypt(). As a result, an attacker can trigger a crash or corrupt heap memory, causing the application to become unavailable or behave unpredictably. The weakness is a classic example of CWE‑191.

Affected Systems

The vulnerability affects the commercial product PDFio by Michael R Sweet. All releases before 1.6.5 are susceptible; version 1.6.5 and later include the fix.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate risk. No EPSS score is currently reported, and the issue is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a crafted AES‑encrypted PDF file that the application opens with pdfioFileOpen(). The likely attack vector is local file handling: an end‑user (or malicious file in a shared location) opens the vulnerable PDF, triggering the vulnerable decryption path and leading to denial of service or memory corruption. The vulnerability does not appear to expose network or remote code execution paths at this time.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update PDFio to version 1.6.5 or later, as released by Michael R Sweet to fix the integer underflow issue.
  • If an upgrade is not immediately feasible, add a pre‑decryption validation step to ensure that any AES‑encrypted value contains more than the 16‑byte IV before invoking the decryption function. This mitigates the underflow by enforcing bounds checks consistent with CWE‑191 best practices.
  • Enable application monitoring or logging to detect crashes or abnormal heap behavior, and apply additional memory safety checks or use a sandboxed environment for untrusted PDF files.

Generated by OpenCVE AI on November 27, 2026 at 14:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Michaelrsweet
Michaelrsweet pdfio
Vendors & Products Michaelrsweet
Michaelrsweet pdfio
Type Values Removed Values Added
Description 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.
Title PDFio before 1.6.5 Out-of-Bounds Read/Write via IV-Only AES-Encrypted Strings
Weaknesses CWE-191
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
AISLE
Published
Updated
Nov 27, 2026, 1:44 PM
Reserved
Nov 27, 2026, 1:36 PM
Status
Deferred
Published
Nov 27, 2026, 2:17 PM
Modified
Nov 27, 2026, 2:17 PM