{"id":"CVE-2026-112394","published":"2026-10-19T20:48:28Z","modified":"2026-10-22T21:04:15Z","title":"Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A caller can supply a buffer and image dimensions whose accepted size is smaller than the unpacker's actual footprint. This can disclose up to three adjacent heap bytes in output pixels or crash the process. This issue is fixed in version 13.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.006,"percentile":0.4966,"provenance":"source"},"cwes":[{"id":"CWE-126","name":"Buffer Over-read"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-4558-3h8r-v8xp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/392ee6f0d19a4adb766a63e9a99f3c28193b8d31","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":9.93},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-22T21:03:53.279429Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":["<13.0.0"],"patched":["13.0.0"],"from":["GHSA-4558-3h8r-v8xp","PYSEC-2026-4327"],"provenance":"source"}],"summary":{"text":"The Pillow imaging library, prior to version 13.0.0, contains a flaw in its P;2L and P;4L raw decoders, which can read past the end of an input buffer because the row size calculation does not match the footprint of the padded bit planes the unpackers actually read. An attacker who can get a caller to process a crafted buffer and dimensions over the network, without authentication or user interaction, can cause the process to disclose up to three adjacent heap bytes in output pixels or crash.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:04Z"},"euvd":{"id":"EUVD-2026-104604","exploited":false,"provenance":"source"}}