Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
Impact
Pillow, a Python imaging library, has a buffer over-read weakness in versions 8.1.0 to 13.0.0, where the TIFF tile and RGBA decode paths can read beyond row data, potentially exposing adjacent heap data. An attacker with access to crafted TIFF files can cause this issue. The impact is a potential crash or exposure of heap data.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
python-pillow · GitHub_M
Pillow
1 range
python-pillow · GitHub_M
Pillow
Compare with this publisher’s ranges. This does not inspect your installation.
affected
>= 8.1.0, < 13.0.0
Other versions: unknown
Original source description
Pillow is a Python imaging library. From 8.1.0 until 13.0.0, Pillow's TIFF tile and RGBA decode paths can read beyond row data produced by libtiff. In _decodeTile and the RGBA unpacker path, when Pillow and libtiff interpret duplicated PhotometricInterpretation or BitsPerSample tags differently, Pillow does not verify that the required input row fits inside the row libtiff produced, while the strip path has this validation. Loading pixels from such a crafted TIFF can expose adjacent heap data in output pixels or crash the process. This issue is fixed in version 13.0.0.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-112404View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Contributing organizations · 2
Assigning organization
Additional data publisher
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.