CVE Vulnerabilities

CVE-2026-54060

Memory Allocation with Excessive Size Value

Published: Jul 06, 2026 | Modified: Jul 07, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.

Affected Software

NameVendorStart VersionEnd Version
PillowPython*12.3.0 (excluding)
Red Hat Ansible Automation Platform 2.5 for RHEL 8RedHatpython3.12-pillow-0:12.3.0-1.el8ap*
Red Hat Ansible Automation Platform 2.5 for RHEL 9RedHatpython3.12-pillow-0:12.3.0-1.el9ap*
Red Hat Ansible Automation Platform 2.6 for RHEL 9RedHatpython3.12-pillow-0:12.3.0-1.el9ap*
Red Hat Enterprise Linux 8RedHatpython-pillow-0:5.1.1-22.el8_10*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatpython-pillow-0:5.1.1-15.el8_4.2*
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRedHatpython-pillow-0:5.1.1-15.el8_4.2*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatpython-pillow-0:5.1.1-20.el8_6*
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-OnRedHatpython-pillow-0:5.1.1-20.el8_6*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatpython-pillow-0:5.1.1-20.el8_8*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatpython-pillow-0:5.1.1-20.el8_8*
Red Hat Satellite 6.16 for RHEL 8RedHatpython-pillow-0:12.3.0-1.el8pc*
Red Hat Satellite 6.16 for RHEL 8RedHatpython-pillow-0:12.3.0-1.el8pc*
Red Hat Satellite 6.16 for RHEL 9RedHatpython-pillow-0:12.3.0-1.el9pc*
Red Hat Satellite 6.16 for RHEL 9RedHatpython-pillow-0:12.3.0-1.el9pc*
Red Hat Satellite 6.17 for RHEL 9RedHatpython-pillow-0:12.3.0-1.el9pc*
Red Hat Satellite 6.17 for RHEL 9RedHatpython-pillow-0:12.3.0-1.el9pc*
Red Hat Satellite 6.18 for RHEL 9RedHatpython3.12-pillow-0:12.3.0-1.el9pc*
Red Hat Satellite 6.18 for RHEL 9RedHatpython3.12-pillow-0:12.3.0-1.el9pc*
Red Hat Satellite 6.19 for RHEL 9RedHatpython3.12-pillow-0:12.3.0-1.el9pc*
Red Hat Satellite 6.19 for RHEL 9RedHatpython3.12-pillow-0:12.3.0-1.el9pc*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/hub-rhel9:1785753568*
Red Hat Ansible Automation Platform 2.6RedHatansible-automation-platform-26/lightspeed-chatbot-rhel9:1785646188*
Red Hat Ansible Automation Platform 2.7RedHatansible-automation-platform-27/hub-rhel9:1785376164*
Red Hat Ansible Automation Platform 2.7RedHatansible-automation-platform-27/lightspeed-chatbot-rhel9:1785426734*
Red Hat Quay 3.12RedHatquay/quay-rhel8:1786170635*
Red Hat Quay 3.15RedHatquay/quay-rhel8:1785261506*
Red Hat Quay 3.9RedHatquay/quay-rhel8:1785950004*
PillowUbuntuquesting*

Potential Mitigations

References