GitHub Advisory Database
GHSA-wjx4-4jcj-g98j
Pillow has an integer overflow when processing fonts
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | pillow | All versions before 12.2.0 (fixed in 12.2.0) |
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/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-165.yaml
- https://github.com/python-pillow/Pillow
- https://github.com/python-pillow/Pillow/releases/tag/12.2.0