CVE-2026-42308
MEDIUM5.5EPSS 0.01%Pillow: Integer overflow when processing fonts
Published: 5/4/2026Modified: 5/27/2026
Description
Pillow is a Python imaging library. Prior to version 12.2.0, 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 issue has been patched in version 12.2.0.
Affected packages (4)
- Bitnami/pillowfrom 0, < 12.2.0
- Debian/pillowfrom 0
- PyPI/pillowfrom 0, < 12.2.0
- PyPI/pillowfrom 0, < 12.2.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2026-42308
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2026-42308
- PATCHhttps://github.com/python-pillow/Pillow
- WEBhttps://github.com/python-pillow/Pillow/releases/tag/12.2.0
- WEBhttps://github.com/python-pillow/Pillow/security/advisories/GHSA-wjx4-4jcj-g98j