Vulnerability · Published Oct 19, 2026 · Assigned by GitHub_M

CVE-2026-112394Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size

Medium 6.3

In plain English

A medium-severity security flaw in Pillow from python-pillow. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.3Medium
Exploit odds (30 days)0.6%top 53.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pillowno fix listedDEBIAN-CVE-2026-112394
Debian:13pillowno fix listedDEBIAN-CVE-2026-112394
Debian:14pillowno fix listedDEBIAN-CVE-2026-112394
PyPIpillow13.0.0GHSA-4558-3h8r-v8xp
PyPIpillow13.0.0PYSEC-2026-4327
Ubuntu:22.04:LTSpillowno fix listedUBUNTU-CVE-2026-112394
Ubuntu:24.04:LTSpillowno fix listedUBUNTU-CVE-2026-112394
Ubuntu:26.04:LTSpillowno fix listedUBUNTU-CVE-2026-112394
Ubuntu:26.10pillowno fix listedUBUNTU-CVE-2026-112394

Affected products (as reported)

VendorProductVersions
python-pillow Pillow < 13.0.0

Weakness: CWE-126 · 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

References