patchminder
Proof of concept · CISA assessment CVE-2026-112397

Memory corruptionin python-pillow Pillow.

Published 19 Oct 2026 · Updated 19 Oct 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
High 8.7
CVSSA severity score from 0 to 10. 9 and higher is critical. 4.0 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 13.0.0 or later
In plain words

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width · 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.

What to do now
  • Upgrade Pillow to 13.0.0 or later.
  • Upgrade Pillow (PyPI) to 13.0.0 or later.
  • Upgrade pillow (PyPI) to 13.0.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Pillow
before 13.0.0
13.0.0
CVE record
Pillow (PyPI)
before 13.0.0
13.0.0
GitHub advisory
pillow (PyPI)
before 13.0.0
13.0.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 19 Oct 2026
    CVE ID reserved by GitHub_M.
  2. 19 Oct 2026
    Published in the CVE List.
  3. 19 Oct 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Pillow vulnerabilities

Same weakness: Out-of-bounds write

All CWE-787 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-112397: Memory corruption in python-pillow Pillow. https://patchminder.com/cve/cve-2026-112397/ (accessed 5 December 2026).