CVE-2026-42308Python Pillow
Medium 5.1
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 31
- CVSS 4.0
- 5.1
- EPSS
- —
- Auth required
- Yes
- Published
- May 9, 2026
- Updated
- Jul 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-190
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for Pillow.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
< 12.2.0 |
12.2.0 |
pip install "pillow>=12.2.0" |
| PyPI | pillow |
< 12.2.0 |
12.2.0 |
pip install "pillow>=12.2.0" |
Per OSV / GitHub Advisories (GHSA-wjx4-4jcj-g98j, PYSEC-2026-165). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | < 12.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product Release Notes
- github.com Vendor Advisory