# CVE-2026-112399: Pillow: APNG background disposal allocates full canvas before decompression bomb check

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 13.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-10-19 · Modified: 2026-10-28
- Aliases: DEBIAN-CVE-2026-112399, GHSA-5xm2-6676-qcp9, CGA-3h82-2mx9-wh65, CGA-cqhf-76mr-6524, CGA-w2w6-c43r-g4wf, CGA-wgxj-f294-fr82, CGA-9rr5-369p-m57x, CGA-f5g8-p47x-5hqh, CGA-hp6f-hxch-6v3x, CGA-rh8q-7jqj-vqfc, CGA-2vfm-qwrg-crx7, CGA-34jg-6fg7-rw5v, CGA-3xh7-q569-4pjh, CGA-437q-888q-cm2c, CGA-4vf9-v9r6-4gwr, CGA-5p9h-rq93-m458, CGA-6f8m-f3cw-2f79, CGA-9g9m-94vf-8jwj, CGA-9vv9-322m-5vfp, CGA-chjg-hh2r-r339, CGA-g2xv-q93w-5x3p, CGA-gqcj-8gw7-q7rq, CGA-h229-7gp5-997f, CGA-jvxf-86gc-gcr4, CGA-mqqq-x975-9x6m, CGA-mxvw-6527-4c34, CGA-xp5q-67pj-f7gh, CGA-8grg-ph8q-rhmh, CGA-5wh3-rvxc-3px5, CGA-76mq-rwg4-hpjg, CGA-8gxc-3vx3-c64h, CGA-ch7j-4fjp-3pf6, CGA-cp43-4pwm-frf6, CGA-jx36-hfw2-668f, CGA-xrm4-794m-cwq4, UBUNTU-CVE-2026-112399, CGA-6266-q8x3-85h3, CGA-73f9-mrcc-cf95, CGA-v8qv-2j5q-3r2c, CGA-w58c-f343-cfwv, BIT-pillow-2026-112399, CGA-j86p-c93g-96r9
- Record: https://cvemate.com/vulnerability/CVE-2026-112399 · JSON: https://cvemate.com/vulnerability/CVE-2026-112399/json

## Description

```text
Pillow is a Python imaging library. From 8.1.0 until 13.0.0, Pillow can allocate an APNG disposal background at the full canvas size before applying the decompression-bomb check. A crafted APNG with a small first frame, a very large declared canvas, and background disposal or first-frame OP_PREVIOUS reaches PngImageFile._seek while Image.open() positions frame zero. The full-canvas allocation occurs inside Image.open() without requiring pixel loading or frame iteration. This can exhaust memory and deny service. This issue is fixed in version 13.0.0.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.573%, percentile 48.785%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 34)

- chainguard apache-beam-python-3.12-sdk (Chainguard): All versions (No fix recorded) \| \< 2.77.0-r5
- chainguard mlflow (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r2
- chainguard mlflow-fips (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r3
- chainguard nemo-gym (Chainguard): \< 0.5.0\_rc0\_git20260729-r6
- chainguard nemo-rl-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-sglang (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-vllm (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard open-webui (Chainguard): \< 0.12.3-r6 \| All versions (No fix recorded)
- chainguard openstack-horizon-2025.2 (Chainguard): All versions (No fix recorded) \| \< 25.5.2\_git20260914-r12
- chainguard py3.10-pillow (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-12.6 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-13.2 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-vllm-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.11-pillow (Chainguard): All versions (No fix recorded) \| \< 13.0.0-r0
- chainguard py3.11-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 2.14.1-r2
- chainguard py3.12-pillow (Chainguard): All versions (No fix recorded) \| \< 13.0.0-r0
- chainguard py3.12-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 2.14.1-r2
- chainguard py3.13-pillow (Chainguard): All versions (No fix recorded) \| \< 13.0.0-r0
- chainguard py3.13-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 2.14.1-r2

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xm2-6676-qcp9>
- <https://github.com/python-pillow/Pillow/commit/f1acfc54c53502948d0d14121872061df931db48>
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0>
- <https://security-tracker.debian.org/tracker/CVE-2026-112399>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112399>
- <https://github.com/python-pillow/Pillow>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112399.json>
- <https://ubuntu.com/security/CVE-2026-112399>
- <https://www.cve.org/CVERecord?id=CVE-2026-112399>
- <https://ubuntu.com/security/notices/USN-9064-1>

---

Data as of 2026-12-05T07:10:34.707Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
