Memory exhaustion in Pillow TIFF and EXIF parsing via crafted images
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-770.
Summary
Pillow from 1.0 before 13.0.0 is affected. The load() method of ImageFileDirectory_v2 keeps a separate bytes object for each out-of-line tag value without limiting total data read (CWE-770). A remote attacker with no privileges and no user interaction can supply a small crafted TIFF or EXIF-bearing image to exhaust process memory, since decompression-bomb checks do not bound this metadata.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
Pillow is a Python imaging library. From 1.0 through 12.3.0, ImageFileDirectory_v2.load() in src/PIL/TiffImagePlugin.py retains a separate bytes object for each out-of-line IFD tag value without limiting the total data read or preventing distinct tags from referencing the same file region. A small crafted TIFF or EXIF-bearing JPEG, PNG, WebP, or MPO can therefore cause memory use quadratic in the input size. TIFF and some JPEG paths trigger parsing during Image.open(), while other formats are exposed when EXIF is requested, including through getexif() or ImageOps.exif_transpose(). The declared pixel dimensions do not bound this metadata allocation, so decompression-bomb checks do not prevent process memory exhaustion. This issue is fixed in version 13.0.0.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| python-pillow | Pillow | 1.0 to before 13.0.0 | 13.0.0 | Patch available | CNA |
| — | Pillow (PyPI) | before 13.0.0 | 13.0.0 | Patch available | GHSA-wqgw-9xfh-qf2g |
- Pillow Vendorpython-pillow Affected 1.0 to before 13.0.0 Fixed in 13.0.0 Patch available CNA
- Pillow (PyPI) Vendor— Affected before 13.0.0 Fixed in 13.0.0 Patch available GHSA-wqgw-9xfh-qf2g
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* | — | — | python-pillow |
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* Versions — — ·python-pillow
Remediation
Upgrade Pillow to version 13.0.0.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA Pillow (python-pillow) Fixed in 13.0.0
- Fix · GHSA-wqgw-9xfh-qf2g Pillow (PyPI) Fixed in 13.0.0 Advisory →
Timeline
- 2026-11-12 Threatist record created from CVE-2026-128066
- 2026-11-13 Alias added: GHSA-wqgw-9xfh-qf2g
- 2026-11-13 Fix available: PyPI/[email protected] · GHSA-wqgw-9xfh-qf2g
- 2026-11-13 Weakness changed · GHSA-wqgw-9xfh-qf2g
- 2026-11-13 5 new references · GHSA-wqgw-9xfh-qf2g
References
Other 5
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-wqgw-9xfh-qf2g
- https://github.com/python-pillow/Pillow/commit/4908edaf7f416616784c7c03d8c1a60153710ffb
- https://github.com/python-pillow/Pillow/commit/4b63dffd8a6d980fa0e21b40832fa6cbf033eacf
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow
More python-pillow vulnerabilities
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
- TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
- TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
- TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
- TI-2026-76627 Out-of-bounds read in Pillow TIFF encoder ColorMap handling CVSS 4.0HIGH 8.8
Sources
- CVE-2026-128066 · CVE Program
- CVE-2026-128066 · NVD
- FIRST EPSS
- GHSA-wqgw-9xfh-qf2g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences