CVE-2026-42308: CWE-190: Integer Overflow or Wraparound in python-pillow Pillow
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.
AI Analysis
Technical Summary
Pillow versions before 12.2.0 contain an integer overflow vulnerability (CWE-190) triggered when font glyph advances exceed large values, leading to incorrect position tracking within the library. This flaw can potentially cause unexpected behavior or crashes when processing certain fonts. The vulnerability is fixed in version 12.2.0 of Pillow.
Potential Impact
The integer overflow can lead to incorrect internal state management in Pillow when processing fonts with large glyph advances. This may result in application crashes or other unintended behavior. The CVSS 4.0 score of 5.1 reflects a medium impact with local attack vector and no privileges required. There are no reports of exploitation in the wild.
Mitigation Recommendations
Upgrade to Pillow version 12.2.0 or later, where this integer overflow vulnerability has been patched. Since this is a local library vulnerability, applying the official update is the recommended remediation. Patch status is confirmed by the vendor's versioning information.
CVE-2026-42308: CWE-190: Integer Overflow or Wraparound in python-pillow Pillow
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.
CVSS v4.0
Score 5.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Pillow versions before 12.2.0 contain an integer overflow vulnerability (CWE-190) triggered when font glyph advances exceed large values, leading to incorrect position tracking within the library. This flaw can potentially cause unexpected behavior or crashes when processing certain fonts. The vulnerability is fixed in version 12.2.0 of Pillow.
Potential Impact
The integer overflow can lead to incorrect internal state management in Pillow when processing fonts with large glyph advances. This may result in application crashes or other unintended behavior. The CVSS 4.0 score of 5.1 reflects a medium impact with local attack vector and no privileges required. There are no reports of exploitation in the wild.
Mitigation Recommendations
Upgrade to Pillow version 12.2.0 or later, where this integer overflow vulnerability has been patched. Since this is a local library vulnerability, applying the official update is the recommended remediation. Patch status is confirmed by the vendor's versioning information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T12:37:18.169Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fec4aacbff5d8610c504f8
Added to database: 05/09/2026, 05:22:50 UTC
Last enriched: 05/16/2026, 10:55:24 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 127
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.