{"cve":"CVE-2026-112396","nvd":{"published":"2026-10-19T22:17:06.837","modified":"2026-10-20T19:50:26.943","status":"Undergoing Analysis","description":"Pillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. This issue is fixed in version 13.0.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9},"cwes":["CWE-416"],"references":["https://github.com/python-pillow/Pillow/commit/dc95da20207827a062cfbf551ee9f6031465a8bb","https://github.com/python-pillow/Pillow/releases/tag/13.0.0","https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwm"],"products":[],"source":"nvd","synced_at":"2026-10-21T03:56:58.798400159+00:00"},"epss":{"cve":"CVE-2026-112396","score":0.00588,"percentile":0.47833,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-4rr5-89j8-mwwm","url":"https://osv.dev/vulnerability/GHSA-4rr5-89j8-mwwm","summary":"Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer","modified":"2026-10-26T08:56:03.366556247Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":[">=11.3.0 <13.0.0"],"fixed":["13.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}