CVE-2026-112393
Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Pillow can write attacker-chosen data past the end of a heap buffer when it saves a TIFF image to an in-memory destination such as io.BytesIO rather than to a file. The same code also copies leftover heap memory from the process into the saved file. Anyone who can supply an image to a service that opens it and re-saves it as TIFF this way can trigger this with default settings.
- No known exploitation
- Severity
- Critical, CVSS 9.2 (v4.0)
- EPSS
- 0.53% chance of exploitation in 30 days (EPSS, as of Oct 23, 2026)
- Affected packages
- Pillow (pip) >= 2.0.0, < 13.0.0, fixed in 13.0.0 · GHSA-332p-7hrc-92wf