Shellfeed logo Shellfeed

CVE-2026-112902 · HIGH

Summary: Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags

EPSS: 0.6% probability of exploitation in the next 30 days (percentile 49.9).

Details

Pillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to  TIFFSetField()  that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability is fixed in version 13.0.0.

Severity

HIGH — vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N

Affected packages

  • PyPI pillow [5.4.0 – 13.0.0]
  • GIT github.com/python-pillow/pillow [0 – 293218ad059d994baf1777d882911bed6a49704a]

References

Posts about CVE-2026-112902