Memory corruptionin python-pillow Pillow.
Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).
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.
- 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.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 19 Oct 2026CVE ID reserved by GitHub_M.
- 19 Oct 2026Published in the CVE List.
- 19 Oct 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.
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.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other Pillow vulnerabilities
Same weakness: Out-of-bounds write
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- github.com x_refsource_MISC
Patchminder. CVE-2026-112397: Memory corruption in python-pillow Pillow. https://patchminder.com/cve/cve-2026-112397/ (accessed 5 December 2026).