---
title: "CVE-2026-112895"
canonical_url: "https://pkgseek.com/security/CVE-2026-112895"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2026-112895

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 c…

CVE-2026-112895 is rated HIGH (7.5), with 9 indexed affected package builds across 4 distributions.

- **Severity / Score**: HIGH (7.5)
- **Affected builds**: 9
- **Affected distros**: 4
- **Distros with fixed_in**: Alibaba Cloud Linux, Oracle Linux

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | python3-pillow | 5.1.1-23.al8 | 5.1.1-36.al8 |
| Debian | trixie | python3-pil | 11.1.0-5+deb13u4 | — |
| Debian | trixie | python3-pil.imagetk | 11.1.0-5+deb13u4 | — |
| Debian | trixie | python-pil-doc | 11.1.0-5+deb13u4 | — |
| Oracle Linux | 8 | python3-pillow | 5.1.1-23.el8_10 | 5.1.1-33.el8_10 |
| Ubuntu | jammy | python3-pil | 9.0.1-1build1 | — |
| Ubuntu | jammy | python-pil-doc | 9.0.1-1build1 | — |
| Ubuntu | noble | python3-pil | 10.2.0-1build1 | — |
| Ubuntu | noble | python-pil-doc | 10.2.0-1build1 | — |
