{"id":"CVE-2026-112396","url":"https://www.cyber-defence.io/tools/cve/CVE-2026-112396","generatedAt":"2026-10-27T23:45:20.374Z","title":"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.","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.","published":"2026-10-19T22:17:07.000Z","lastModified":"2026-10-26T21:00:39.000Z","status":"Analyzed","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"cwe":["CWE-416"],"affected":["python/pillow"],"epss":{"score":0.00588,"percentile":0.47848,"date":"2026-10-26","history":[{"date":"2026-10-20","score":0.00462,"percentile":0.38774}]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (0.59%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[{"kind":"scored","label":"Newly scored","at":"2026-10-26T22:16:08.000Z","detail":{"from":"5.9","score":"7.5","severity":"HIGH","fromSeverity":"MEDIUM"},"summary":"Now scored CVSS 7.5 HIGH (was 5.9)."},{"kind":"new","label":"New CVE","at":"2026-10-19T22:17:07.000Z","detail":{"score":"5.9","severity":"MEDIUM","publishedAt":"2026-10-19T22:17:06.837Z"},"summary":"New CVE, high severity (CVSS 7.5)."}],"references":[{"url":"https://github.com/python-pillow/Pillow/commit/dc95da20207827a062cfbf551ee9f6031465a8bb","tags":["Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["Release Notes"],"source":"security-advisories@github.com"},{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4rr5-89j8-mwwm","tags":["Exploit","Vendor Advisory"],"source":"security-advisories@github.com"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-112396","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}