Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 65%

CVE-2026-54060: CWE-789: Memory Allocation with Excessive Size Value in python-pillow Pillow

0
High
VulnerabilityCVE-2026-54060cvecve-2026-54060cwe-789
Published: 07/06/2026 (07/06/2026, 18:49:23 UTC)
Source: CVE Database V5
Vendor/Project: python-pillow
Product: Pillow

Description

Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font to trigger excessive allocation during conversion or saving. This issue is fixed in version 12.3.0.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

pillow
pkg:pypi/pillow
Affected versions
<12.3.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/14/2026, 09:00:26 UTC

Technical Analysis

CVE-2026-54060 is a high-severity vulnerability in the python-pillow Pillow library affecting versions before 12.3.0. The vulnerability arises from the FontFile.compile() method in PIL/FontFile.py, which assembles per-glyph images into a combined bitmap using Image.new("1", (xsize, ysize)) without invoking Image._decompression_bomb_check(). This omission allows a crafted font to trigger excessive memory allocation during image conversion or saving, potentially causing denial of service due to resource exhaustion. The issue is resolved in Pillow version 12.3.0.

Potential Impact

The vulnerability can cause a denial of service by exhausting system memory when processing specially crafted fonts, impacting availability. There is no impact on confidentiality or integrity according to the CVSS vector. No known exploits are reported in the wild.

Mitigation Recommendations

Upgrade to Pillow version 12.3.0 or later, where this issue is fixed. Patch status is confirmed by the vendor advisory indicating the fix in version 12.3.0. No other mitigation is specified.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-11T18:24:35.096Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4bfce927e9c7971910b4bb

Added to database: 07/06/2026, 19:07:21 UTC

Last enriched: 07/14/2026, 09:00:26 UTC

Last updated: 08/20/2026, 15:52:45 UTC

Views: 90

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses