CVE-2026-112406

NameCVE-2026-112406
DescriptionPillow 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pillow (PTS)bookworm, bookworm (security)9.4.0-1.1+deb12u1vulnerable
trixie11.1.0-5+deb13u4vulnerable
trixie (security)11.1.0-5+deb13u3vulnerable
forky12.3.0-1vulnerable
sid13.0.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pillowsource(unstable)13.0.0-1

Notes

https://github.com/python-pillow/Pillow/security/advisories/GHSA-f2g6-542v-9j58
Fixed by: https://github.com/python-pillow/Pillow/commit/b3ebf20c694f2f12537a629c30229a1d5a53f777 (13.0.0)

Search for package or bug name: Reporting problems