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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128067.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "13.0.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "53318b50e8e9e85a57d033d4d879e1398d97aeb1"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "ec5f1cbcf67275641abaad5c065ffb64a0a804a9"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "13.0.0",
"range": [
{
"fixed": "293218ad059d994baf1777d882911bed6a49704a"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-128067.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "111594629840009715343409152504898600105",
"length": 1000
},
"id": "CVE-2026-128067-b6dd9bfd",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/python-pillow/pillow/commit/ec5f1cbcf67275641abaad5c065ffb64a0a804a9",
"target": {
"file": "src/libImaging/TiffDecode.c",
"function": "ImagingLibTiffEncode"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"188967658685476293475612679463822553848",
"259117789613976754992331597665371384996",
"263655289590584502705193078764417061155",
"120938566522317082933488558068096884182"
],
"threshold": 0.9
},
"id": "CVE-2026-128067-fb5cbd1b",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/python-pillow/pillow/commit/ec5f1cbcf67275641abaad5c065ffb64a0a804a9",
"target": {
"file": "src/libImaging/TiffDecode.c"
}
}
]
"2026-11-13T13:10:14Z"