cve.bz

CVE-2026-54059 python pillow

7.5 highExploit referenceEPSS 0.4%Fix available

High (7.5) in python pillow. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in pillow 12.3.0.

On this page
Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allowing crafted PCF font data to cause excessive memory allocation. This issue is fixed in version 12.3.0.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-07-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-789 Memory Allocation with Excessive Size Value
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-54059 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-54059?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-54059?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-54059 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
python:pillowbefore 12.3.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8v84-f9pq-wr9xPyPIpillow<12.3.012.3.0
PYSEC-2026-2253PyPIpillow<12.3.012.3.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13pillowno fix listedDEBIAN-CVE-2026-54059
Debian14pillow12.3.0-1DEBIAN-CVE-2026-54059
Ubuntu22.04:LTSpillow9.0.1-1ubuntu0.6UBUNTU-CVE-2026-54059 USN-8999-1
Ubuntu24.04:LTSpillow10.2.0-1ubuntu1.4UBUNTU-CVE-2026-54059 USN-8999-1
Ubuntu26.04:LTSpillow12.1.1-2ubuntu1.4UBUNTU-CVE-2026-54059 USN-8999-1
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSpillowno fix listedUBUNTU-CVE-2026-54059
UbuntuPro:20.04:LTSpillow, pillow-python2no fix listedUBUNTU-CVE-2026-54059
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.31-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8automation-eda-controller, automation-eda-controller-base, automation-eda-controller-base-services and 2 more0:1.1.21-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more0:2.5.10-7.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-aiohttp0:3.14.1-2.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-daphne0:4.2.2-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-pillow0:12.3.0-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8python3.12-pyasn10:0.6.4-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el8receptor, receptorctl, receptor-debuginfo and 1 more0:1.6.7-1.el8apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el9automation-controller-venv-tower0:4.6.31-1.el9apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el9automation-eda-controller, automation-eda-controller-base, automation-eda-controller-base-services and 2 more0:1.1.21-1.el9apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el9automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more0:2.6.17-2.el9apRHSA-2026:50319
Red Hatansible_automation_platform:2.5::el9python3.12-aiohttp0:3.14.1-2.el9apRHSA-2026:50319
56 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-Pillow9.5.0-150400.5.25.1SUSE-SU-2026:3268-1
SUSELinux Enterprise Module for Package Hub 15 SP7python-Pillow7.2.0-150300.3.27.1SUSE-SU-2026:2875-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-Pillow11.3.0-160000.6.1SUSE-SU-2026:22626-1
openSUSELeap 16.0python-Pillow11.3.0-160000.6.1openSUSE-SU-2026:21296-1
openSUSETumbleweedpython-Pillow12.3.0-1.1openSUSE-SU-2026:11261-1
AlmaLinux8python3-pillow, python3-pillow-tk, python3-pillow-doc and 1 more5.1.1-22.el8_10ALSA-2026:39127
Rocky Linux8python-pillow0:5.1.1-22.el8_10RLSA-2026:39127

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw was found in the Python Pillow library. The PcfFontFile._load_bitmaps() method reads glyph dimensions from the PCF METRICS section and passes them directly to Image.frombytes() without calling Image._decompression_bomb_check(). This allows crafted PCF font data to cause excessive memory allocation, leading to a denial of service condition. An attacker could exploit this by providing a specially crafted PCF font file to an application that uses Pillow's font loading functionality.

Red Hat's mitigation

Do not load PCF fonts from untrusted sources. If PCF font loading is required, validate font file dimensions before passing them to Pillow, or upgrade to Pillow 12.3.0 or later which includes the fix for this vulnerability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-pillow-0:12.3.0-1.el8apFixed 2026-08-04RHSA-2026:50319
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-pillow-0:12.3.0-1.el9apFixed 2026-08-04RHSA-2026:50319
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-pillow-0:12.3.0-1.el9apFixed 2026-08-04RHSA-2026:50336
Red Hat Enterprise Linux 8python-pillow-0:5.1.1-22.el8_10Fixed 2026-07-14RHSA-2026:39127
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpython-pillow-0:5.1.1-15.el8_4.2Fixed 2026-08-10RHSA-2026:52551
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpython-pillow-0:5.1.1-15.el8_4.2Fixed 2026-08-10RHSA-2026:52551
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpython-pillow-0:5.1.1-20.el8_6Fixed 2026-07-31RHSA-2026:48760
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onpython-pillow-0:5.1.1-20.el8_6Fixed 2026-07-31RHSA-2026:48760
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepython-pillow-0:5.1.1-20.el8_8Fixed 2026-07-31RHSA-2026:48759
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspython-pillow-0:5.1.1-20.el8_8Fixed 2026-07-31RHSA-2026:48759
Red Hat Satellite 6.16 for RHEL 8python-pillow-0:12.3.0-1.el8pcFixed 2026-08-04RHSA-2026:50223
Red Hat Satellite 6.16 for RHEL 9python-pillow-0:12.3.0-1.el9pcFixed 2026-08-04RHSA-2026:50223
Red Hat Satellite 6.17 for RHEL 9python-pillow-0:12.3.0-1.el9pcFixed 2026-08-04RHSA-2026:50222
Red Hat Satellite 6.18 for RHEL 9python3.12-pillow-0:12.3.0-1.el9pcFixed 2026-08-04RHSA-2026:50263
Red Hat Satellite 6.19 for RHEL 9python3.12-pillow-0:12.3.0-1.el9pcFixed 2026-08-04RHSA-2026:50221
Red Hat Ansible Automation Platform 2python-pillowNot affected
Red Hat Enterprise Linux 7python-pillowNot affected
Red Hat Satellite 6satellite-capsule:el8/python-pillowNot affected
Red Hat Satellite 6satellite:el8/python-pillowAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-54059.

References

Check your stackJSON