python-pillow/pillow · Security
Pillow has an integer overflow when processing fonts
- GHSA ID
- GHSA-wjx4-4jcj-g98j
- CVE ID
- CVE-2026-42308
- Severity
- medium
- Published
- Updated
- CVSS
- 5.5 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 5.5 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- CVSS v4
- 5.1 · CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Description
If a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This has been fixed.
CWEs
- CWE-190 · Integer Overflow or Wraparound
References
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-wjx4-4jcj-g98j ↗
- https://nvd.nist.gov/vuln/detail/CVE-2026-42308 ↗
- https://github.com/python-pillow/Pillow/releases/tag/12.2.0 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-165.yaml ↗
- https://github.com/advisories/GHSA-wjx4-4jcj-g98j ↗