CVE-2026-42308
MEDIUM 5.1CVSS 4.0Pillow has an integer overflow when processing fonts
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.
- Published
- 9 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-190
- Also known as
- BIT-pillow-2026-42308GHSA-wjx4-4jcj-g98jPYSEC-2026-165
- Sources
- NVDJSONOSV GHSA-wjx4-4jcj-g98jJSONOSV PYSEC-2026-165JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
< 12.2.0 | 12.2.0 |
| OSV | PyPI | pillow | < 12.2.0 | 12.2.0 |
References
- https://github.com/python-pillow/Pillow/releases/tag/12.2.0 · Product, Release Notes, WEB, ADVISORY
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-wjx4-4jcj-g98j · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-42308 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-165.yaml · WEB
- https://github.com/python-pillow/Pillow · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 9 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 May 2026)