Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts malicious font file
-
DeliveryProvides font to vulnerable application
-
ExploitApplication loads font via Pillow
-
InstallPillow accumulates glyph advance values
-
C2Integer overflow in position tracking
-
ExecuteMemory corruption or crash
-
ImpactDenial of service or code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerability requires that the target application uses Pillow to process or render fonts supplied by or influenced by an attacker. Specifically, the application must call Pillow's font rendering functions (such as ImageDraw.text() or ImageFont methods) with a maliciously crafted font file containing glyphs with excessively large advance values. The overflow occurs during the glyph position accumulation step, which happens automatically during any font rendering operation. No special Pillow configuration or non-default settings are required-the vulnerable code path is active in all standard rendering operations. However, exploitation is limited to applications that accept fonts from untrusted sources; applications that use only built-in or pre-validated fonts are not at risk. |
| Impact | Risk is moderate to high despite absent CVSS scoring. The attack vector is network-accessible (remote attacker can provide a malicious font file), attack complexity is low (requires only a crafted font, not special conditions), and privileges required are none (any application using Pillow can be targeted). However, exploitation requires the victim application to actively process or render the malicious font, limiting the attack surface. EPSS and KEV status are not provided, so active exploitation cannot be confirmed. The integer overflow can lead to memory corruption, denial of service, or potentially arbitrary code execution depending on how overflowed position values are used in subsequent rendering operations. The fix exists and is released (version 12.2.0), reducing urgency for patched deployments but creating risk for outdated installations. Applications that process user-supplied fonts (image processing APIs, font rendering services, PDF generators using Pillow) face elevated risk. |
| Exploit ScenarioDerived | An attacker crafts a malicious TrueType font file with a glyph whose advance value is set to a very large integer (e.g., 0x7FFFFFFF on 32-bit systems). This font is then provided to a web service that uses Pillow to render text or generate images from user input-such as a dynamic image generator, document converter, or font preview tool. When the application attempts to render text using this font, Pillow's position-tracking logic accumulates the oversized advance value, triggering an integer overflow that corrupts the heap or stack, leading to a crash (denial of service) or potentially code execution if memory is carefully controlled by the attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
Integer overflow in Pillow's font glyph processing allows remote code execution or denial of service when handling maliciously crafted fonts with extremely large glyph advance values. Pillow versions before 12.2.0 are affected. The vulnerability is triggered during font rendering operations where position tracking accumulates glyph advances without proper bounds checking, leading to wraparound arithmetic that can corrupt memory or crash the interpreter.
RemediationAI
Upgrade Pillow to version 12.2.0 or later immediately. This is the vendor-released patch that resolves the integer overflow. Run 'pip install --upgrade pillow>=12.2.0' to update existing installations. For applications that cannot upgrade immediately, implement input validation to reject fonts with unusually large glyph advance values before passing them to Pillow's rendering functions. Additionally, restrict font file sources to trusted origins and disable automatic font processing for untrusted user inputs. If using Pillow in a containerized environment, rebuild container images with the patched version and redeploy. Monitor application logs for font processing errors or crashes that may indicate exploitation attempts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Pillow is a Python Imaging Library that processes fonts and renders text. When rendering glyphs from a TrueType or OpenType font, the library tracks the current horizontal position by accumulating the advance width of each glyph. The vulnerability exists in this position-tracking logic: if a single glyph's advance value is extremely large (close to or exceeding the maximum value of a signed integer), adding it to the current position causes an integer overflow. On systems using 32-bit integers, this overflow wraps the position to a negative or small positive value, corrupting subsequent memory writes or reads during glyph rendering. The root cause is improper input validation and lack of bounds checking before arithmetic operations on font metrics (CWE-190: Integer Overflow or Wraparound).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/python-pillow/Pillow).
CVSS VectorVendor: https://github.com/python-pillow/Pillow
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Same weakness CWE-190 – Integer Overflow or Wraparound
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Module for Python 3 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP4 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP5 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
EUVD-2026-28900
GHSA-wjx4-4jcj-g98j
NVD
CVE.org
EPSS
VulDB
Exploit-DB