Red Hat VEX
RHVEX-CVE-2026-112398
pillow: Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
Details
A flaw was found in Pillow. A remote attacker can achieve arbitrary code execution by supplying a specially crafted FlashPix (FPX) image file to an application that processes untrusted inputs. Due to improper handling of image tile data during JPEG decoding, the library writes pixel data beyond the allocated memory buffer. This out-of-bounds write corrupts heap memory and can allow an attacker to execute arbitrary commands or cause an application crash.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | python-pillow | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python-pillow-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python-pillow-doc | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python-pillow-qt | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python-pillow-sane | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python-pillow-tk | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2026-112398
- https://bugzilla.redhat.com/show_bug.cgi?id=2555867
- https://www.cve.org/CVERecord?id=CVE-2026-112398
- https://nvd.nist.gov/vuln/detail/CVE-2026-112398
- https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-5x8w-8jj5-q52h