Feed
7.5HIGH

CVE-2026-112895Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)

A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.6% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.6%
percentile 42%
Priority
39/100 medium
how it is computed
Fix
Named by a source
CVE published 19 Oct 2026

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.6% (+1) · Public exploit or proof of concept (+15) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • pillow (PyPI) pkg:pypi/pillow

    • Affected>= 5.1.0, < 13.0.0Fixed in13.0.0OSV (GHSA-p4wg-p73j-c528)
  • python pillow product:python/pillow

    • Affected>= 5.1.0, < 13.0.0Affected range ends before13.0.0as published by CPE data (via the NVD API)
  • python-pillow Pillow product:pythonpillow/pillow

    • Affected>= 5.1.0, < 13.0.0Affected range ends before13.0.0as published by CNA (CVE List)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
7.5 HIGH (version 3.1)
Score from
NVD
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Weakness
CWE-674
Exploitation (CISA SSVC)
none
Automatable (CISA SSVC)
yes
Assigned by
[email protected]

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow can exhaust resources while parsing an existing PDF during an append operation. PdfParser follows page-tree child references without cycle or duplication tracking and follows previous-trailer chains with only an exact repeated-offset guard, so deep or cyclic page trees and long chains of unique trailer offsets can exhaust the Python stack. Repeated non-cyclic /Kids references can also cause super-linear CPU and memory use. An attacker can supply such a PDF to an application that calls Image.save with PDF append enabled. This can raise an uncaught RecursionError or consume excessive CPU and memory before output is written, causing denial of service. This issue is fixed in version 13.0.0.

Update history

  • 19 Oct 2026Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 24 min ago · osv 24 min ago · nvd 85 min ago · epss 24 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-pillow-2026-112895, GHSA-p4wg-p73j-c528