CVE-2026-128067 json
Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
published 14d ago modified 2d ago also EUVD-2026-124778 , GHSA-xcvg-w56q-r89m
- cvss
- 8.4
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
Pillow is a Python imaging library. From 2.3.0 through 12.3.0, Pillow applications that save compressed TIFF images through libtiff can pass attacker-controlled image geometry tags to the encoder while allocating its row buffer from the actual image dimensions. The affected TiffImagePlugin._save path allows ImageWidth, ImageLength, or SamplesPerPixel from exif=, tiffinfo=, or a source TIFF IFD to make libtiff consume a larger scanline than the buffer supplied by ImagingLibTiffEncode. This can read heap memory into the generated TIFF or crash the process. When TIFF Predictor 2 is enabled, libtiff can rewrite the oversized scanline in place and corrupt memory beyond the buffer. A carried-over PlanarConfiguration value of 2 instead makes libtiff use a shorter scanline and can produce an undecodable output file, but is not established to cause the out-of-bounds access. This issue is fixed in version 13.0.0.
Patch / fix
- pypi pillow 13.0.0
Is CVE-2026-128067 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2d ago
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.4 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N |
| CNA | 4.0 | 8.4 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pillow | <13.0.0 |
13.0.0 |
Affected products
- python-pillow Pillow
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
github.com
/python-pillow/Pillow/commit/53318b50e8e9e85a57d033d4d879e1398d97aeb1
web
-
github.com
/python-pillow/Pillow/commit/ec5f1cbcf67275641abaad5c065ffb64a0a804a9
web
-
github.com
/python-pillow/Pillow/security/advisories/GHSA-xcvg-w56q-r89m
web, advisory
-
github.com
/python-pillow/Pillow/releases/tag/13.0.0
web
-
github.com
/python-pillow/Pillow
package
Sources
- CVE List CVE-2026-128067
- GitHub Advisory GHSA-xcvg-w56q-r89m
- NVD CVE-2026-128067
- Maintainer advisory GHSA-xcvg-w56q-r89m
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of python-pillow/Pillow published their own advisory on GitHub. Reviewed sources take precedence over it.