CVE-2026-112404: Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels

Published Oct 19, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/Pillow>=8.1.0<13.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Pillow to a version that resolves this vulnerability.

    Fixed in 13.0.0

Event History

Oct 19, 2026
CVE Published
via MITRE·09:27 PM
Data Sourced
via MITRE·09:27 PM
DescriptionWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Pillow deployments are affected?

Pillow versions from 8.1.0 up to, but not including, 13.0.0 are affected. The issue is fixed in Pillow 13.0.0.

2

What must an attacker provide to trigger the issue?

An attacker needs to supply a crafted TIFF whose duplicated PhotometricInterpretation or BitsPerSample tags are interpreted differently by Pillow and libtiff. The vulnerable behavior occurs when the application loads pixel data from that TIFF.

3

What is the practical impact for applications processing untrusted TIFF files?

Processing a malicious TIFF can expose adjacent heap memory in decoded output pixels or crash the process. Applications that accept or process attacker-controlled TIFF uploads are therefore exposed to both information disclosure and availability impact.

4

Are all TIFF decoding paths affected?

The affected paths are TIFF tile decoding and the RGBA unpacker path. The description states that the strip path includes validation that the affected paths lack.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203