CVE Database›Document archive›CVE-2026-96641

CVE-2026-96641

pillow: pillow: Denial of Service via integer overflow in text-width calculation

Loading…

Severity

Moderate

Red Hat Product Security

6.5

CVSS 3.1

Review impact separately from score.

Published · October 22, 2026

Updated · November 4, 2026

Description

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.

Statement

This vulnerability is rated as Moderate impact because successful exploitation typically results in application denial of service or computational discrepancies rather than remote code execution. In typical Red Hat deployments across platforms such as Red Hat Enterprise Linux and OpenShift AI, Pillow is used by backend services and automated pipelines, which rarely expose raw font parsing or text-width metrics directly to unauthenticated external inputs. An attacker must supply specially crafted font files or text strings to an application performing dimension metrics to trigger the integer overflow.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CWE-190 · Integer Overflow or Wraparound