Red Hat VEX
RHVEX-CVE-2026-112393
pillow: Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Details
A flaw was found in Pillow. When saving compressed Tagged Image File Format (TIFF) images into memory buffers rather than direct files, the library incorrectly calculates the required memory allocation. A remote attacker who supplies a crafted image for processing can trigger a heap-based buffer overflow, potentially leading to arbitrary code execution or a Denial of Service (DoS) through process crashes. Additionally, uninitialized memory gaps can result in information disclosure by leaking remnants of previously stored data.
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-112393
- https://bugzilla.redhat.com/show_bug.cgi?id=2555846
- https://www.cve.org/CVERecord?id=CVE-2026-112393
- https://nvd.nist.gov/vuln/detail/CVE-2026-112393
- https://github.com/python-pillow/Pillow/commit/11582e5ffbdceb973d5ee593f3105af5a9852b40
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf