Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 13.0.0, Pillow 13.0.0 and pillow 13.0.0.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python | pillow | <13.0.0 | 13.0.0 |
| python-pillow | <13.0.0 | ||
| pypi: Pillow | >=5.4.0 <=12.3.0 | 13.0.0 | |
| pypi: pillow | <13.0.0, >=5.4.0 <13.0.0 | 13.0.0 |
Exploit evidence
1 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Pillow (PyPI), strongest first
Embed
A live severity badge for an advisory, README or ticket