PatchSiren cyber security CVE debrief
CVE-2026-112902 Python Pillow CVE debrief
A crafted TIFF file can cause Pillow to disclose memory or segfault when saving as TIFF, affecting applications that re-save images as TIFF. The vulnerability is in `PyImaging_LibTiffEncoderNew` in `src/encode.c`. This issue allows an attacker to potentially disclose sensitive information or cause a denial of service through a specially crafted TIFF file. Defenders should assess exposure, especially in image processing applications that use Pillow to save images as TIFF, and prioritize verification and remediation efforts.
- Vendor
- Python Pillow
- Product
- Pillow
- CVSS
- Unknown
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-21
- Original CVE updated
- 2026-10-21
- Advisory published
- 2026-10-21
- Advisory updated
- 2026-10-21
Who should care
Defenders responsible for image processing applications using Pillow, especially those re-saving images as TIFF, should assess exposure and prioritize verification and remediation.
Why it matters
CVE-2026-112902 is a vulnerability in Pillow that can cause memory disclosure or segfaults when saving crafted TIFF files. Defenders should prioritize verifying exposure in image processing applications, especially those using Pillow to save images as TIFF, and assess the impact of potential memory disclosure or process crashes.
- Potential memory disclosure leading to sensitive data exposure
- Potential process crashes or denial of service
- Need to verify exposure in image processing applications
- Prioritize updating Pillow to version 13.0.0 or later
Technical summary
The vulnerability is in `PyImaging_LibTiffEncoderNew` in `src/encode.c`. A crafted TIFF file can cause Pillow to disclose memory or segfault when saving as TIFF. The trigger is an ordinary `Image.open()` followed by a bare `im.save(fp, 'TIFF')`. This issue allows an attacker to potentially disclose sensitive information or cause a denial of service through a specially crafted TIFF file. The vulnerability affects applications that re-save images as TIFF, and defenders should prioritize verifying exposure in such applications.
Defensive priority
Defenders should prioritize verifying exposure in image processing applications, especially those using Pillow to save images as TIFF, and assess the impact of potential memory disclosure or process crashes.
Recommended defensive actions
- Verify if applications using Pillow to save images as TIFF are exposed to this vulnerability.
- Assess the impact of potential memory disclosure or process crashes in affected applications.
- Prioritize updating Pillow to version 13.0.0 or later.
- Monitor for potential exploitation attempts targeting this vulnerability.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The source corpus provides details on a crafted TIFF file causing memory disclosure or segfault in Pillow when saving as TIFF. A reproducer was provided, demonstrating the issue with a 356-byte LZW TIFF file.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-112902 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-112902
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-112902 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-112902
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-xvh5-g6gv-559v.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/security/advisories/GHSA-xvh5-g6gv-559v
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/commit/af56ace297b0991d02988fcc2ea933e4824b4fb3
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/python-pillow/Pillow/releases/tag/13.0.0
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.