Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-54058: Pillow is a Python imaging library

53
This week
CRITICAL 9.1REMOTEUPGRADE

CVE-2026-54058 is a critical-severity flaw (CVSS 9.1) affecting pillow. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Critical severity
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.1 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.5% (top 57%)
CISA exploited listNo
WeaknessCWE-125
Published2026-07-14
Last modified2026-10-24
Publisher (CNA): GitHub, Inc. · Vendor: python

Share: LinkedIn · X · Reddit

Last updated 2026-10-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

python pillow UPGRADE
Affected: < 12.3.0
Fixed in: 12.3.0
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy pillow || rpm -q pillow || pillow --version
2. UPGRADE to 12.3.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade pillow
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade pillow
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.

Exact fixes by distribution

Python (pip) · pillow · FIXED · 12.3.0 · vulnerable: < 12.3.0 · source
pip install --upgrade "pillow>=12.3.0" pip show pillow
Fedora 46 · conda · FIXED · 26.9.4-2.fc46 · FEDORA-2026-09931756f1 · source
sudo dnf upgrade --advisory=FEDORA-2026-09931756f1
Debian 12 · pillow · NO FIX YET
Debian 13 · pillow · NO FIX YET
RHEL 8 · python-pillow · FIXED · python-pillow-5.1.1-23.el8_10
sudo dnf upgrade --advisory=RHSA-2026:48021 rpm -q python-pillow
RHEL 8.4 Advanced Mission Critical Update Support · python-pillow · FIXED · python-pillow-5.1.1-15.el8_4.2
sudo dnf upgrade --advisory=RHSA-2026:52551 rpm -q python-pillow
RHEL 8.4 Extended Update Support Long-Life Add-On · python-pillow · FIXED · python-pillow-5.1.1-15.el8_4.2
sudo dnf upgrade --advisory=RHSA-2026:52551 rpm -q python-pillow
RHEL 8.6 Advanced Mission Critical Update Support · python-pillow · FIXED · python-pillow-5.1.1-20.el8_6.1
sudo dnf upgrade --advisory=RHSA-2026:54528 rpm -q python-pillow
RHEL 8.6 Extended Update Support Long-Life Add-On · python-pillow · FIXED · python-pillow-5.1.1-20.el8_6.1
sudo dnf upgrade --advisory=RHSA-2026:54528 rpm -q python-pillow
Amazon Linux 2023 · see advisory · FIXED · ALAS2023-2026-2013 · source
sudo dnf update --advisory=ALAS2023-2026-2013
Amazon Linux 2 · see advisory · FIXED · ALAS2-2026-3839 · source
sudo yum update --advisory=ALAS2-2026-3839

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-54058?

pillow: upgrade to 12.3.0. Exact commands for each OS are on this page.

Is CVE-2026-54058 being exploited?

CVE-2026-54058 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-54058 affect?

CVE-2026-54058 affects pillow. Severity is critical (CVSS 9.1). 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 wid

How urgent is CVE-2026-54058?

Priority 53/100. Critical severity; Public exploit reference; Remotely exploitable, no login, no user action

Software pages

Python vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.