{"id":"CVE-2026-112896","published":"2026-10-19T21:59:17Z","modified":"2026-10-20T13:55:36Z","title":"Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00475,"percentile":0.4194,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-pchr-8j38-3x4p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/d03dc3c587a9b0bdc9e4304d70d59a635a87b742","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":8.39},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-20T13:55:06.738726Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":["<13.0.0"],"patched":["13.0.0"],"from":["GHSA-pchr-8j38-3x4p","PYSEC-2026-4334"],"provenance":"source"}],"summary":{"text":"Pillow's TIFF encoder, the image-writing component of this Python imaging library, has a flaw in versions before 13.0.0 where a retained ColorMap buffer can be read past its bounds when the stored plane size doesn't match the BitsPerSample value. An attacker who supplies a crafted TIFF that an application opens and then re-encodes with libtiff can trigger this out-of-bounds read over the network without authentication or user interaction, potentially leaking heap memory into the output or crashing the process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:36Z"},"euvd":{"id":"EUVD-2026-104658","exploited":false,"provenance":"source"}}