Red Hat VEX
RHVEX-CVE-2026-96641
pillow: pillow: Denial of Service via integer overflow in text-width calculation
Details
A flaw was found in Pillow. When processing text dimensions with certain fonts, negative character spacing values are not properly validated during text-width calculation, causing an integer overflow. A remote attacker could exploit this vulnerability by providing crafted text or font data to an application that calculates text layout or dimensions. Successful exploitation could lead to excessive resource allocation, resulting in a Denial of Service (DoS) or application logic errors.
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-96641
- https://bugzilla.redhat.com/show_bug.cgi?id=2558573
- https://www.cve.org/CVERecord?id=CVE-2026-96641
- https://nvd.nist.gov/vuln/detail/CVE-2026-96641
- https://github.com/python-pillow/Pillow/commit/80de4be9e38d3a6148dd4d8491eb80cd12b760a4
- https://github.com/python-pillow/Pillow/pull/10010
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rm8-3hmm-39fg