CVE-2026-112897: Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips

Published Oct 19, 2026
·
Updated

Pillow is a Python imaging library. From 5.3.0 until 13.0.0, Pillow can return uninitialized memory as pixels when libtiff performs a short decode of JPEG-compressed or Group 4 fax TIFF data. The decodeStrip and decodeTile buffers can be larger than the bytes written by libtiff, but Pillow converts the expected rows without clearing the unwritten tail. The tile path is affected from 5.3.0 and the strip path from 6.0.0. An attacker can supply a crafted TIFF to an application that loads and returns or re-encodes its pixels. This can disclose stale heap contents without memory corruption or a process crash. This issue is fixed in version 13.0.0.

Affected Software

1 affected component
pypi/Pillow>=5.3.0<13.0.0, >=6.0.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·10:00 PM
Data Sourced
via MITRE·10:00 PM
DescriptionWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Pillow installations are affected?

Pillow versions from 5.3.0 up to, but not including, 13.0.0 are affected through the TIFF tile decode path. The TIFF strip decode path is affected from 6.0.0 up to, but not including, 13.0.0.

2

What must an attacker be able to do to exploit this issue?

An attacker must be able to provide a crafted JPEG-compressed or Group 4 fax TIFF file to an application using Pillow. The application must load the image and return or re-encode its pixels for stale heap contents to be disclosed.

3

Does exploitation require authentication, user interaction, or a crash?

No authentication or user interaction is required according to the supplied CVSS vector. The issue discloses stale heap memory and does not require memory corruption or a process crash.

4

What is the remediation?

Upgrade Pillow to version 13.0.0, which fixes the issue. If upgrading cannot happen immediately, avoid accepting or processing untrusted JPEG-compressed or Group 4 fax TIFF files in workflows that expose or re-encode decoded pixels.

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