CVE-2026-137937
Deferred Deferred - Pending Action

Integer Underflow in PDFio Library

Vulnerability report for CVE-2026-137937, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-27

Last updated on: 2026-11-27

Assigner: 1a4f025a-074d-4105-b4e2-52bd8eabe2ea

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-27
Last Modified
2026-11-27
Generated
2026-11-27
AI Q&A
2026-11-27
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
michaelrsweet pdfio From 0 (inc) to 1.6.5 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-191 The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

PDFio before version 1.6.5 has an integer underflow vulnerability in the AES decryption function _pdfioCryptoAESDecrypt(). When an AES-encrypted PDF contains only a 16-byte initialization vector without actual ciphertext, the function incorrectly processes PKCS#7 padding removal. This causes the decrypted length to underflow, leading to out-of-bounds memory reads and writes when the corrupted length is used in operations like memcpy.

Detection Guidance

Detect this vulnerability by checking the version of PDFio in use. If your application uses PDFio and the version is below 1.6.5, it is likely vulnerable. Commands to check include 'pdfio --version' or inspecting the library version in your project dependencies.

Impact Analysis

Opening a maliciously crafted AES-encrypted PDF with pdfioFileOpen() triggers this flaw automatically. It can crash the application or corrupt heap memory, potentially allowing attackers to execute arbitrary code or cause denial-of-service conditions on systems using vulnerable PDFio versions.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by allowing unauthorized memory corruption or crashes when processing malformed AES-encrypted PDFs. If exploited, it may lead to data integrity issues or denial of service, which could violate requirements for secure data handling and availability in these regulations.

Mitigation Strategies

Upgrade PDFio to version 1.6.5 or later immediately. This version includes a fix for the integer underflow issue in AES decryption. If upgrading is not possible, avoid processing untrusted PDF files with AES encryption until the update is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-137937. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...