SocWatch

CVE-2026-112393

Kritisch 9,8

Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO

CVSS
9,8 (v3.1)
Angriffswahrscheinlichkeit (EPSS)
1,02 % (höher als 64,4 % aller Lücken)
Veröffentlicht
19.10.2026
Zuletzt geändert
26.10.2026

Beschreibung

Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size instead of the current write position, allowing an attacker-controlled out-of-line TIFF tag or retained ICC profile to be copied beyond the allocation after libtiff seeks forward. This overflow can crash the process and may allow code execution. Independently, unwritten alignment gaps in compressed TIFF output larger than 64 KiB can disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected. This issue is fixed in version 13.0.0.

Betroffene Pakete

Paket Betroffen Behoben in
AlmaLinux:8 python3-pillow alle Versionen vor 5.1.1-36.el8_10 5.1.1-36.el8_10
AlmaLinux:8 python3-pillow-devel alle Versionen vor 5.1.1-36.el8_10 5.1.1-36.el8_10
AlmaLinux:8 python3-pillow-doc alle Versionen vor 5.1.1-36.el8_10 5.1.1-36.el8_10
AlmaLinux:8 python3-pillow-tk alle Versionen vor 5.1.1-36.el8_10 5.1.1-36.el8_10
Debian:12 pillow alle Versionen, noch kein Fix noch kein Fix
Debian:13 pillow alle Versionen, noch kein Fix noch kein Fix
PyPI pillow ab 2.0.0 vor 13.0.0 13.0.0
Rocky Linux:8 python-pillow alle Versionen vor 0:5.1.1-36.el8_10 0:5.1.1-36.el8_10
Ubuntu:22.04:LTS pillow alle Versionen vor 9.0.1-1ubuntu0.7 9.0.1-1ubuntu0.7
Ubuntu:24.04:LTS pillow alle Versionen vor 10.2.0-1ubuntu1.5 10.2.0-1ubuntu1.5

Quellen

Weitere Kennungen

GHSA-332p-7hrc-92wf · BIT-pillow-2026-112393 · UBUNTU-CVE-2026-112393 · DEBIAN-CVE-2026-112393 · CWE-122

Sind Ihre Projekte betroffen?

Prüfen Sie ein Lockfile kostenlos oder lassen Sie Ihre Repositories laufend überwachen.