# CVE-2026-42308: Pillow: Integer overflow when processing fonts

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-05-04T20:18:45.000Z
- Modified: 2026-09-10T03:50:47.950Z
- Also known as: GHSA-wjx4-4jcj-g98j, BIT-PILLOW-2026-42308, PYSEC-2026-165
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: < 12.2.0
- pillow (PyPI): before 12.2.0
- python pillow: before 12.2.0
- pillow (Bitnami): before 12.2.0

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-wjx4-4jcj-g98j> (advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/releases/tag/12.2.0> (advisory, article, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42308> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-165.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-42308](https://www.cve.org/CVERecord?id=CVE-2026-42308), CVE Terms of Use, modified 2026-05-11
- GitHub Advisory Database: [GHSA-wjx4-4jcj-g98j](https://github.com/advisories/GHSA-wjx4-4jcj-g98j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42308](https://nvd.nist.gov/vuln/detail/CVE-2026-42308), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-165](https://osv.dev/vulnerability/PYSEC-2026-165), CC-BY-4.0, modified 2026-05-27
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-42308](https://osv.dev/vulnerability/BIT-PILLOW-2026-42308), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-42308 · Whole record: https://cve.day/CVE-2026-42308.json · Rebuilt by cve.day 2026-11-25T22:59:21.139Z
