# CVE-2026-112398: Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution

- 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-22
- Aliases: DEBIAN-CVE-2026-112398, UBUNTU-CVE-2026-112398, GHSA-5x8w-8jj5-q52h, CGA-3gg3-gg63-2q56, CGA-4h3h-47pj-4rvp, CGA-9ppx-x6vx-hvjp, CGA-2jfc-473g-xh4x, CGA-4vhg-j949-xmc7, CGA-86xj-q8p2-725x, CGA-jx5p-w694-pfp5, CGA-mg6j-9jfj-7j4w, CGA-qv55-rrr4-hr9g, CGA-4f2x-65mc-97c4, CGA-pvh9-4jcv-pgv8, CGA-rj27-3r5m-v9hp, BIT-pillow-2026-112398, CGA-9765-7f5q-529h, CGA-r42f-hmqq-57ww, PYSEC-2026-4330, CGA-74c9-rmxh-gfhp
- Record: https://cvemate.com/vulnerability/CVE-2026-112398 · JSON: https://cvemate.com/vulnerability/CVE-2026-112398/json

## Description

```text
Pillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.696%, percentile 54.396%, 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

- 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-skills (Chainguard): All versions (No fix recorded) \| \< 0.7.0\_git20260911-r5
- chainguard open-webui (Chainguard): All versions (No fix recorded)
- 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)
- wolfi mlflow (Wolfi): All versions (No fix recorded)
- wolfi open-webui (Wolfi): All versions (No fix recorded)
- wolfi py3.10-pillow (Wolfi): All versions (No fix recorded)
- debian pillow (Debian): All versions (No fix recorded) \| \< 13.0.0-1
- ubuntu pillow (Ubuntu): All versions (No fix recorded) \| \< 2.3.0-1ubuntu3.4+esm6 \| \< 3.1.2-0ubuntu1.6+esm4 \| \< 5.1.0-1ubuntu0.8+esm3 \| \< 7.0.0-4ubuntu0.9+esm2 \| \< 9.0.1-1ubuntu0.7 \| \< 10.2.0-1ubuntu1.5 \| \< 12.3.0-1ubuntu2 \| \< 12.1.1-2ubuntu1.5
- ubuntu pillow-python2 (Ubuntu): All versions (No fix recorded)
- PyPI pillow (PyPI): \< 13.0.0
- python-pillow pillow: \< 13.0.0
- python pillow: \< 13.0.0

## References

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

---

Data as of 2026-12-05T04:44:24.468Z. 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
