Red Hat VEX
RHVEX-CVE-2026-112396
pillow: pillow: arbitrary code execution via heap use-after-free during TIFF encoding
Details
A flaw was found in Pillow. This vulnerability allows a remote attacker to potentially execute arbitrary code or cause a Denial of Service (DoS). The issue occurs when an application encodes Tagged Image File Format (TIFF) data with untrusted tags into an in-memory buffer. When an invalid tag is rejected during encoding, improper error handling prematurely frees memory that is subsequently accessed during cleanup, triggering a heap use-after-free condition.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:8 | python-pillow | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | python3-pillow | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | python3-pillow-devel | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | python3-pillow-doc | All versions, no fix (fix deferred) |
| Red Hat:enterprise_linux:8 | python3-pillow-tk | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2026-112396
- https://bugzilla.redhat.com/show_bug.cgi?id=2555865
- https://www.cve.org/CVERecord?id=CVE-2026-112396
- https://nvd.nist.gov/vuln/detail/CVE-2026-112396
- https://github.com/python-pillow/Pillow/commit/dc95da20207827a062cfbf551ee9f6031465a8bb
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwm