CVE-2026-112406

Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow can enter an infinite loop while rewriting PDF pages. PdfParser.rewrite_pages() follows Parent relationships without detecting a cycle in the page tree. An attacker can supply a cyclic PDF to an application that appends an image to that PDF. This can hold the worker at full CPU and deny service. This issue is fixed in version 13.0.0.
Configurations

Configuration 1 (hide)

cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*

History

27 Oct 2026, 14:59

Type Values Removed Values Added
References () https://github.com/python-pillow/Pillow/commit/b3ebf20c694f2f12537a629c30229a1d5a53f777 - () https://github.com/python-pillow/Pillow/commit/b3ebf20c694f2f12537a629c30229a1d5a53f777 - Patch
References () https://github.com/python-pillow/Pillow/releases/tag/13.0.0 - () https://github.com/python-pillow/Pillow/releases/tag/13.0.0 - Release Notes
References () https://github.com/python-pillow/Pillow/security/advisories/GHSA-f2g6-542v-9j58 - () https://github.com/python-pillow/Pillow/security/advisories/GHSA-f2g6-542v-9j58 - Exploit, Mitigation, Patch, Vendor Advisory
First Time Python
Python pillow
CPE cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5

19 Oct 2026, 22:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-19 22:17

Updated : 2026-10-27 14:59


NVD link : CVE-2026-112406

Mitre link : CVE-2026-112406

CVE.ORG link : CVE-2026-112406


JSON object : View

Products Affected

python

  • pillow
CWE
CWE-835

Loop with Unreachable Exit Condition ('Infinite Loop')