CVE-2026-112393
CRITICAL 9.2Pillow 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.
Severe if exploited (CVSS 9.2), but no known exploitation and low modeled probability. Patch on a normal cadence.
Exploitation likelihood
0.8%chance of exploitation in 30 days · 57th percentile
Impact if exploited
9.2CVSS 4.0 · CRITICAL
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ✓Privileges: No account or privileges required
- ✓User interaction: No user interaction needed
- ⚠Complexity: Needs a race window or specific setup
- ⚠Requirements: Specific conditions must be present
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked daily for recent CVEs, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-122: : Heap-based Buffer Overflow
CVSS vector
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
References and research data (JSON)
Packages and version ranges
Each advisory describes its own package and affected ranges. A boundary applies to that range; it is not a universal upgrade recommendation.
pillow PyPI
pkg:pypi/pillow
ECOSYSTEM range- Introduced version (included): 2.0.0
- Fixed boundary (excluded): 13.0.0
91 explicitly listed affected versions
10.0.0, 10.0.1, 10.1.0, 10.2.0, 10.3.0, 10.4.0, 11.0.0, 11.1.0, 11.2.1, 11.3.0, 12.0.0, 12.1.0, 12.1.1, 12.2.0, 12.3.0, 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.3.2, 2.4.0, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0, 2.6.1, 2.6.2, 2.7.0, 2.8.0, 2.8.1, 2.8.2, 2.9.0, 3.0.0, 3.1.0, 3.1.0.rc1, 3.1.0rc1, 3.1.1, 3.1.2, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.4.0, 3.4.1, 3.4.2, 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.3.0, 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 5.4.0.dev0, 5.4.1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.2.2, 7.0.0, 7.1.0, 7.1.1, 7.1.2, 7.2.0, 8.0.0, 8.0.1, 8.1.0, 8.1.1, 8.1.2, 8.2.0, 8.3.0, 8.3.1, 8.3.2, 8.4.0, 9.0.0, 9.0.1, 9.1.0, 9.1.1, 9.2.0, 9.3.0, 9.4.0, 9.5.0
GitHub Advisory Database · GHSA-332p-7hrc-92wf · Updated 2026-10-26T08:56:07.886625845ZAdditional upstream package constraints
{ "database": { "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-332p-7hrc-92wf/GHSA-332p-7hrc-92wf.json" } }
All CVSS metrics
- CRITICAL 9.2 v4.0 · CNA Primary
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 - CRITICAL 9.2 v4.0 · NVD Secondary
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
References
Exploit-tagged references (not proof of a PoC)
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-332p-7hrc-92wf CVE record · GitHub_M · Updated 2026-10-19T20:46:40.784Z
CVE record · CISA-ADP · Updated 2026-10-19T21:17:41.571Z
NVD · CVE-2026-112393 · Updated 2026-10-20T19:48:50.250
GitHub Advisory Database · GHSA-332p-7hrc-92wf
GitHub Advisory Database · GHSA-332p-7hrc-92wf · Updated 2026-10-26T08:56:07.886625845Z
Advisories
- https://osv.dev/vulnerability/GHSA-332p-7hrc-92wf GitHub Advisory Database · GHSA-332p-7hrc-92wf
GitHub Advisory Database · GHSA-332p-7hrc-92wf · Updated 2026-10-26T08:56:07.886625845Z - https://nvd.nist.gov/vuln/detail/CVE-2026-112393 GitHub Advisory Database · GHSA-332p-7hrc-92wf
GitHub Advisory Database · GHSA-332p-7hrc-92wf · Updated 2026-10-26T08:56:07.886625845Z - https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-104603 EUVD · EUVD-2026-104603
Technical & other
- https://github.com/python-pillow/Pillow/commit/11582e5ffbdceb973d5ee593f3105af5a9852b40 CVE record · GitHub_M · Updated 2026-10-19T20:46:40.784Z
NVD · CVE-2026-112393 · Updated 2026-10-20T19:48:50.250
GitHub Advisory Database · GHSA-332p-7hrc-92wf
GitHub Advisory Database · GHSA-332p-7hrc-92wf · Updated 2026-10-26T08:56:07.886625845Z - https://github.com/python-pillow/Pillow/releases/tag/13.0.0 CVE record · GitHub_M · Updated 2026-10-19T20:46:40.784Z
NVD · CVE-2026-112393 · Updated 2026-10-20T19:48:50.250
GitHub Advisory Database · GHSA-332p-7hrc-92wf
GitHub Advisory Database · GHSA-332p-7hrc-92wf · Updated 2026-10-26T08:56:07.886625845Z - https://github.com/python-pillow/Pillow GitHub Advisory Database · GHSA-332p-7hrc-92wf
GitHub Advisory Database · GHSA-332p-7hrc-92wf · Updated 2026-10-26T08:56:07.886625845Z