Skip to main content

PDFio CVE-2026-137937

| EUVDEUVD-2026-137249 MEDIUM
Integer Underflow (CWE-191)
2026-11-27 AISLE GHSA-8vvg-4p6q-69x4
6.9
CVSS 4.0 · Vendor: AISLE
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft AES-encrypted PDF with IV-only value
  2. Delivery
    Deliver file to pdfio-based application
  3. Exploit
    Victim opens file via pdfioFileOpen()
  4. Execution
    Padding strip underflows length to SIZE_MAX
  5. Persist
    memcpy out-of-bounds read/write
  6. Impact
    Process crash or heap corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
Exploitation Conditions

Exploitation requires that the targeted application use pdfio (versions before 1.6.5) to open an untrusted, AES-128-encrypted PDF, and that the crafted file contain an AES-encrypted string or binary value of exactly 16 bytes (the IV alone, with no ciphertext block) nested in a parsed object dictionary such as the catalog. The underflow additionally depends on the byte at outbuffer[-1] being <= 0x10, though the published PoC triggers it reliably. The flaw is reached automatically during pdfioFileOpen() with no further API calls. LIMITING FACTORS: it is local/file-delivered (AV:L) and requires victim action to open the malicious file (UI:P); it only affects deployments that pass attacker-controlled AES-encrypted PDFs to pdfio, and only the pre-1.6.5 code. No network service is exposed.

Impact

This is a real but moderate-priority memory-corruption flaw rather than a high-urgency network threat. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H, score 6.9 Medium) correctly models a local, file-delivered attack: there is no network-reachable service, and exploitation hinges on a victim opening an attacker-supplied PDF (UI:P). The GHSA advisory contains a verified, ASan-confirmed proof-of-concept, so exploit knowledge is public, but there is NO CISA KEV listing and NO EPSS score was supplied, so there is no evidence of active or widespread exploitation. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a serious-but-not-emergency triage. The primary demonstrated impact is a reliable crash/DoS (VA:H); the advisory notes that OOB heap read followed by a near-SIZE_MAX memcpy write 'may allow further exploitation depending on heap layout', but code execution is speculative and not demonstrated - do not treat it as confirmed RCE. Note one data conflict to verify: the CVSS 4.0 vector is AV:L while the mechanism is 'open a crafted file', which is appropriate, but defenders automating off AV should not mistake this for remotely triggerable without user action.

Exploit ScenarioDerived

An attacker crafts an AES-128-encrypted PDF in which a string or binary value in an object dictionary (e.g. the document catalog) is truncated to exactly its 16-byte IV with no ciphertext, then delivers it to a victim or a backend service that uses pdfio. The moment the file is opened with pdfioFileOpen(), padding stripping underflows the unsigned length to near SIZE_MAX and that value flows into memcpy, causing an out-of-bounds heap read/write that crashes the process or corrupts memory. A verified, ASan-confirmed proof-of-concept (gen/patch/driver harness) is published in the GHSA advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

Memory corruption in PDFio before 1.6.5 lets a crafted AES-128-encrypted PDF crash or corrupt the heap of any application that opens it with pdfioFileOpen(). An integer underflow in the AES-CBC decryption path turns a 16-byte, IV-only encrypted string or binary value into a memcpy of close to SIZE_MAX bytes, and it is reached automatically while the document's cross-reference and object dictionaries are parsed - no further API calls are needed from the caller. The upstream advisory publishes a proof-of-concept that was verified to abort under AddressSanitizer; there is no CISA KEV listing and no confirmed active exploitation, and the assessed vector is local (AV:L) with victim interaction (UI:R), so this is a real but moderate-priority memory-corruption bug rather than a network-facing emergency.

RemediationAI

Upgrade to PDFio 1.6.5 or later, which contains the upstream fix commit bb77255b2832c2b35fe502237ac1b452221e74ff (early return when the decryption length is zero, and padding stripped only when outbytes > 0); the release is published at https://github.com/michaelrsweet/pdfio/releases/tag/v1.6.5 and the contributor advisory is GHSA-527h-2p2v-g388. Because the vulnerable code is a compiled C library, rebuilding every application or product that statically embeds pdfio is required - replacing a shared library alone is insufficient for vendored or bundled copies, and downstream distributors that still show the package as unpatched have to be tracked separately. Until a rebuild is possible, the only reliable compensating control that follows from the exploitation conditions is to avoid feeding untrusted AES-encrypted PDFs to pre-1.6.5 builds - for example by rejecting or quarantining password-protected/AES-encrypted uploads, or by processing untrusted PDFs in a sandboxed, low-privilege worker that can be safely restarted - since unencrypted and RC4-encrypted files do not reach the vulnerable routine; the trade-off is lost functionality for legitimately encrypted documents. Scanning inbound PDFs for AES-encrypted values that decode to exactly 16 bytes prior to any pdfioFileOpen() call is possible in principle but requires a PDF parser, so it is fragile compared with upgrading.

Affected VersionsENISA

pdfio 0 <1.6.5

Affected Packages

euvd pdfio fix: 1.6.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PDFio is a small C library for reading and writing PDF files, and it implements the PDF standard security handler for RC4 and AES-128 encryption. In an AES-encrypted PDF, string and binary values are stored as a 16-byte initialization vector followed by AES-CBC ciphertext blocks, with PKCS#7 padding on the final block. _pdfioCryptoAESDecrypt() in pdfio-aes.c assumed that at least one 16-byte ciphertext block had been decrypted before it stripped that padding: when called with last=true it unconditionally read outbuffer[-1] and subtracted the value from outbytes. _pdfioCryptoMakeReader() (pdfio-crypto.c) only required an AES-128 value to be at least 16 bytes - enough for the IV - and never required ciphertext beyond it, so _pdfioValueDecrypt() (pdfio-value.c) could pass len = datalen - ivlen = 0 with last=true. The decryption loop never runs, outbytes stays 0, outbuffer never advances, and the padding check reads one byte before the output buffer; if that adjacent heap byte is <= 0x10, the unsigned size_t underflows to a value near SIZE_MAX. Callers trust the returned length directly (memcpy into v->value.binary.data for binary values, temp[templen] = '\0' for strings), producing an out-of-bounds heap read followed by an enormous write. This is CWE-191 (integer underflow), reached through pdfioFileOpen() -> load_xref() -> pdfioObjGetDict() -> _pdfioObjLoad() -> _pdfioValueDecrypt() -> _pdfioDictDecrypt(). The upstream fix (commit bb77255b2832c2b35fe502237ac1b452221e74ff, released in v1.6.5) adds an early return when len == 0 and changes the padding strip to if (last && outbytes > 0).

Know when Pdfio gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (AISLE) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.1 MEDIUM

File must be opened by the victim, so AV:L and UI:R; no auth needed (PR:N); reliable crash gives A:H, heap OOB write gives I:L, no confidentiality disclosure path so C:N.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (AISLE).

CVSS VectorVendor: AISLE

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 27, 2026 - 15:17 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
niche standalone C PDF library, limited enterprise deployment footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy