Skip to content
OpenAdvisories
High · 8.3 CVE-2026-54058 BIT-pillow-2026-54058EUVD-2026-43735GHSA-62p4-gmf7-7g93PYSEC-2026-3493

Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)

Published Jul 14, 2026 · Updated Jul 14, 2026 · Assigned by GitHub_M

Description

Pillow is a Python imaging library. Prior to 12.3.0, when Pillow loads an uncompressed McIdas AREA image from a filename through the mmap raw codec path, attacker-controlled header words can set a row stride smaller than the natural row width, causing pixel access such as Image.tobytes(), getpixel, convert, or save to read beyond the mapped region and disclose adjacent process memory or fault. This issue is fixed in version 12.3.0.

Affected products

VendorProductAffectedFixed
python-pillow Pillow < 12.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pillow 12.3.0-1 —
Debian 13 pillow No fix yet —
Debian 12 pillow No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS pillow 12.1.1-2ubuntu1.4 USN-8999-1
Ubuntu 24.04 LTS pillow 10.2.0-1ubuntu1.4 USN-8999-1
Ubuntu 22.04 LTS pillow 9.0.1-1ubuntu0.6 USN-8999-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pillow +1 No fix yet —
Ubuntu Pro 18.04 LTS pillow No fix yet —
Ubuntu Pro 16.04 LTS pillow No fix yet —
Ubuntu Pro 14.04 LTS pillow No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 python-pillow +4 5.1.1-23.el8_10 RHSA-2026:48021
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.8 TUS python-pillow +1 5.1.1-20.el8_8.1 RHSA-2026:54417
RHEL 8.8 E4S python-pillow +1 5.1.1-20.el8_8.1 RHSA-2026:54417
RHEL 8.6 EUS Long Life python-pillow +1 5.1.1-20.el8_6.1 RHSA-2026:54528
RHEL 8.6 AUS python-pillow +1 5.1.1-20.el8_6.1 RHSA-2026:54528
RHEL 8.4 EUS Long Life python-pillow +1 5.1.1-15.el8_4.2 RHSA-2026:52551
RHEL 8.4 AUS python-pillow +1 5.1.1-15.el8_4.2 RHSA-2026:52551

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 python3-pillow +3 5.1.1-23.el8_10 ALSA-2026:48021

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 python-pillow 5.1.1-23.el8_10 RLSA-2026:48021
ReleasePackageFixed inAdvisory
SLES 15 SP7 python-Pillow 7.2.0-150300.3.30.1 SUSE-SU-2026:3084-1
SLES 15 SP6 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
SLES 15 SP5 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
SLES 15 SP4 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
SLES 3 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 python-Pillow 11.3.0-160000.8.1 SUSE-SU-2026:23228-1, SUSE-SU-2026:23217-1
SLES for SAP 15 SP6 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
SLES for SAP 15 SP5 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
SLES for SAP 15 SP4 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
SLES 16.0 python-Pillow 11.3.0-160000.8.1 SUSE-SU-2026:23228-1, SUSE-SU-2026:23217-1
SLE HPC 15 SP5 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
SLE HPC 15 SP4 python-Pillow 9.5.0-150400.5.25.1 SUSE-SU-2026:3268-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Pillow 12.3.0-2.1 openSUSE-SU-2026:11283-1
openSUSE Tumbleweed python-graphifyy 0.9.65-1.1 openSUSE-SU-2026:11839-1
openSUSE Leap 16.0 python-Pillow 11.3.0-160000.8.1 openSUSE-SU-2026:21544-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3-pillow +2 9.4.0-2.amzn2023.0.10 ALAS2023-2026-2013
Amazon Linux 2 python-pillow +4 2.0.0-23.gitd1c6db8.amzn2.0.20 ALAS2-2026-3839

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 python3-pillow +3 5.1.1-23.el8_10 ELSA-2026-48021

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling open-webui 0.10.2-r1 —
Wolfi rolling superset-6.0 6.0.0-r13 —
Wolfi rolling superset-6.1 6.1.0-r6 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow < 12.3.0 12.3.0 GHSA-62p4-gmf7-7g93

Advisories 18

References