CVE-2026-40192Python Pillow
High 8.7 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 4.0
- 8.7
- EPSS
- —
- Auth required
- No
- Published
- Apr 15, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Pillow is a Python imaging library. Versions 10.3.0 through 12.1.1 did not limit the amount of GZIP-compressed data read when decoding a FITS image, making them vulnerable to decompression bomb attacks. A specially crafted FITS file could cause unbounded memory consumption, leading to denial of service (OOM crash or severe performance degradation). If users are unable to immediately upgrade, they should only open specific image formats, excluding FITS, as a workaround.
What to do
- Apply the vendor's security update for Pillow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
≥ 10.3.0 < 12.2.0 |
12.2.0 |
pip install "pillow>=12.2.0" |
| PyPI | pillow |
≥ 10.3.0 < 12.2.0 |
12.2.0 |
pip install "pillow>=12.2.0" |
Per OSV / GitHub Advisories (GHSA-whj4-6x5x-4v2j, PYSEC-2026-2250). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | ≥ 10.3.0 < 12.2.0 |
Official advisories
- Red Hat Security Advisory: Satellite 6.18.7 Async Update · Red Hat · RHSA-2026:34368 · Jul 2, 2026 High
- Red Hat Security Advisory: Satellite 6.19.2 Async Update · Red Hat · RHSA-2026:34365 · Jul 2, 2026 High
- Red Hat Security Advisory: Satellite 6.17.9 Async Update · Red Hat · RHSA-2026:34366 · Jul 2, 2026 High
- Security update for python-Pillow · SUSE · openSUSE-SU-2026:20617-1 · Apr 22, 2026 High
- python311-Pillow-12.2.0-2.1 on GA media · SUSE · openSUSE-SU-2026:10575-1 · Apr 18, 2026 High
Also: Red Hat (+3)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Mitigation Patch Vendor Advisory
- pillow.readthedocs.io Release Notes
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- security.access.redhat.com