// Security Advisory Triage

Pillow CVE-2026-112399: APNG decompression bomb bypasses memory check

GitHub advisories — pip · published 2026-10-22 17:16 UTC
ACTION NEEDED PATCH_NOW SECURITY
WHAT CHANGEDGitHub published CVE-2026-112399 on 21 October 2026, rated high severity. Pillow's APNG background disposal allocates full canvas memory before running decompression bomb checks, enabling memory exhaustion attacks. Patched in version 13.0.0.
WHY IT MATTERSAn attacker can craft an APNG file that exhausts server memory before Pillow's safety limits trigger, causing denial of service in any application that processes untrusted images through Pillow. This bypasses the library's intended protection against decompression bombs.
WHAT TO DOUpgrade Pillow to 13.0.0 or later in all environments that process images from untrusted sources — user uploads, external APIs, scraped content. Verify the version with `pip show Pillow`.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-5xm2-6676-qcp9
+summary: Pillow: APNG background disposal allocates full canvas before decompression bomb check
+severity: high
+published_at: 2026-10-21T21:17:56Z
+cve_id: CVE-2026-112399
+vulnerabilities[].package.name: Pillow
+vulnerabilities[].first_patched_version: 13.0.0
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningPillow is a standard Python image library. Decompression bomb in APNG handling affects services processing untrusted images.
signalsknown CVE with assigned ID · high severity rating · Pillow is a widely-used image processing library in Python dependency trees · decompression bomb vulnerability — memory exhaustion attack vector · patched version available (13.0.0) · advisory newly published
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)