THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-4rr5-89j8-mwwm (medium) — Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer

[GHSA] GHSA-4rr5-89j8-mwwm (medium) — Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer

medgithub_advisoriesPublished 2026-10-21

GHSA-4rr5-89j8-mwwm Severity: medium CVE: CVE-2026-112396

Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer

### Summary Saving an image as TIFF to an in-memory buffer can trigger a heap use-after-free if libtiff rejects a tag at encode time. When `TIFFWriteScanline` fails, the encoder frees its output buffer but leaves the libtiff handle open. Later, when the encoder object i

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-4rr5-89j8-mwwm