CVE-2026-112393
9.2CriticalPublished Oct 19, 2026 · NVD status: Undergoing Analysis · AI triage by gemini-3.8-flash
Critical
0CVSS v4.010
- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-122
What an attacker gets
Attackers can achieve remote code execution, crash the process, or leak stale heap memory by submitting malicious image metadata. They need the application to save compressed TIFF images to in-memory buffers like BytesIO.
Root cause
The _tiffWriteProc callback allocates memory based on the prior buffer size instead of the current write position when libtiff seeks forward on targets lacking a real file descriptor.
Affected versions
Pillow 2.0.0 through 12.x (before 13.0.0)
CVSS v4.0 · CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Fix & remediation
Upgrade Pillow to version 13.0.0 or later. If updating immediately is not possible, save TIFF output directly to a file descriptor or disk path rather than an in-memory stream like BytesIO.
$ pip install --upgrade "Pillow>=13.0.0"AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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.
References
- https://github.com/python-pillow/Pillow/commit/11582e5ffbdceb973d5ee593f3105af5a9852b40
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf
Related Critical CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-936489.3CriticalUnauthenticated attackers can execute arbitrary JavaScript in a user's browser by sending a crafted iCalendar invitation. This allows the attacker to steal mailbox data and perform actions as the logged-in user.
- CVE-2026-936469.8CriticalUnauthenticated attackers can execute arbitrary commands as the zimbra user. They only need network access to the Zimbra server to exploit the flawed token authorization.
- CVE-2026-1378379.3CriticalUnauthenticated attackers can execute arbitrary JavaScript in the Zimbra origin to steal mailbox data or perform actions as the user. This requires a signed-in user to open a malicious XML attachment.
- CVE-2026-1378369.3CriticalUnauthenticated attackers can execute arbitrary JavaScript in the Zimbra origin by sending a crafted XML attachment. A signed-in user must open the attachment for the script to execute, granting the attacker access to mailbox data and authenticated actions.
- CVE-2026-1378359.3CriticalUnauthenticated attackers can execute arbitrary JavaScript in a user's browser by sending a crafted email. This allows the attacker to steal mailbox data and perform actions as the logged-in user.
- CVE-2026-887669.3CriticalLocal attackers can achieve arbitrary code execution with system privileges by sending a crafted APDU command to the VSIM service. This exploit requires local access to the device.