Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2026-42308

CVE-2026-42308: Pillow has an integer overflow when processing fonts

May 4, 2026 (updated June 8, 2026)

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.

References

  • github.com/advisories/GHSA-wjx4-4jcj-g98j
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-165.yaml
  • github.com/python-pillow/Pillow/releases/tag/12.2.0
  • github.com/python-pillow/Pillow/security/advisories/GHSA-wjx4-4jcj-g98j
  • nvd.nist.gov/vuln/detail/CVE-2026-42308

Code Behaviors & Features

Detect and mitigate CVE-2026-42308 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 12.2.0

Fixed versions

  • 12.2.0

Solution

Upgrade to version 12.2.0 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

pypi/Pillow/CVE-2026-42308.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:26 +0000.