Vulnerabilities

Security fix · CVE-2026-112394

Pillow is a Python imaging library.

Published Oct 19, 2026 · catalog updated Oct 27, 2026 · Pillow is a Python

Last checked Oct 30, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2026-112394. EPSS is 0.56%. Act only if a listed version of Pillow is a Python is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Pillow is a Python).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium6.3
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.56%
Remediation
Version ranges on file
Affected products
Bitnami pillow · pip Pillow · pypi pillow

### Summary On , even with the guard in #9725, it's possible to have these decoders read 1 to 3 bytes past the end of the passed buffer with a suitable width/height. ### Details and the / unpackers disagree about how many bytes a line of data occupies. The raw decoder derives the line size from the bits per pixel and uses it both for the bounds check and to advance to the next line. For and , is 2 and 4 respectively. But these two rawmodes are not packed pixels but 2 or 4 *bit planes*, each padded to a whole number of bytes. computes and reads plane *k* at offset , and does the same across four planes. Their real footprint is therefore . For some widths, padding each plane separately makes this footprint larger than . For example, at width 1, the decoder accounts for one byte, while the unpackers read two or four bytes. The decoder accepts data that is too short for the last line and on the other hand advances to subsequent lines by less than a line, so every line after the first is also read from the wrong offset. #9725's check is misshapen for this: * It can reject data of the right length: 8x1 image is 2 bytes but is not accepted. * It still accepts buffers shorter than the unpackers require for a given image shape. * It measures the length with , which is an element count rather than a byte count; e.g. (20 bytes) is rejected while is accepted. ### PoC ( ) is the almost-simplest reproducer. ( is needed to get ASan to reliably scream, but the overread is observable with e.g. bytes literals. Python allocates es with an extra trailing null byte, from an arena by default to boot, so ASan doesn't see the overread.) On my Mac, I can get ASan to scream about this with like so: (To get it to scream differently about , comment out the P;2L case.) The above output is with and off 5eee92031a1986dfdaac7c78cdf0b764c0697118 lazily instrumented to print out what it's reading: ### Impact Only a very specific use case is affected: or calls of the shape above. The PCX decoder, whi

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Bitnami pillow0 → 13.0.0
  • pip Pillow<= 12.3.0
  • pypi pillowversion unspecified

How to fix CVE-2026-112394

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-112394. EPSS is 0.56%. Act only if a listed version of Pillow is a Python is installed.

Which versions are affected?

Compare what you have installed with Pillow <= 12.3.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-126. EPSS 0.56%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Technology hubs

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 19, 2026 · NIST NVD

    Detected

    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 hea

  2. Oct 20, 2026 · NIST NVD

    Updated

    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 hea

  3. Oct 21, 2026 · GitHub Advisory Database

    Updated

    ### Summary On , even with the guard in #9725, it's possible to have these decoders read 1 to 3 bytes past the end of the passed buffer with a suitable width/height. ### Details and the / unpackers disagree about how many bytes a line of data occupies. The raw decoder derives the line size from the bits per pixel and uses it both for the bounds check and to advance to the next line. For and , is 2

  4. Oct 27, 2026 · GitHub Advisory Database

    Fix available

    pillow fixed in 13.0.0

  5. Oct 27, 2026 · GitHub Advisory Database

    Fix available

    pillow fixed in 13.0.0

  6. Oct 27, 2026 · GitHub Advisory Database

    Updated

    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 hea

Sources

  • CVE.orgVulnerability recordCVE-2026-112394

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2026-112394

    30-day exploitation probability 0.56%

    first.org
  • GitHub Advisory DatabasePackage advisoryGHSA-4558-3h8r-v8xp

    GitHub Advisory Database record mirrored by OSV.

    github.com
  • GitLab Advisory DatabasePackage advisoryCVE-2026-112394

    On main, even with the guard in #9725, it's possible to have these decoders read 1 to 3 bytes past the end of the passed buffer with a suitable width/height.

    advisories.gitlab.com
  • NIST NVDVulnerability recordCVE-2026-112394

    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 di

    nvd.nist.gov
  • OpenSSF OSV / OSV ScannerPackage advisoryBIT-pillow-2026-112394

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

    osv.dev

References

Freshness

Last verified in this catalog Oct 30, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • FIRST EPSSOct 30, 2026
  • GitHub Advisory DatabaseOct 28, 2026
  • OpenSSF OSV / OSV ScannerOct 28, 2026
  • GitLab Advisory DatabaseOct 23, 2026
  • CVE.orgOct 21, 2026
  • NIST NVDOct 21, 2026