python-pillow Pillow Out-Of-Bounds Write Flaw (CVE-2026-112397) Rated CVSS 8.7
A newly published high vulnerability in python-pillow Pillow carries a CVSS score of 8.7. Here is what is affected and how to respond.

Key points
- CVE-2026-112397 affects python-pillow Pillow.
- CVSS 8.7 (High).
- No exploitation confirmed yet.
python-pillow Pillow is affected by CVE-2026-112397, a out-of-bounds write that the National Vulnerability Database rates 8.7 out of 10.
At a glance
- CVE
- CVE-2026-112397
- Product
- python-pillow Pillow
- CVSS
- 8.7 High
- Weakness
- out-of-bounds write
- Exploited
- No known exploitation
What is the vulnerability?
The NVD entry states: 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.
Affected versions
| Vendor | Product | Versions |
|---|---|---|
| Python-Pillow | Pillow | < 13.0.0 |
Is it being exploited?
There is no public confirmation of exploitation at the time of publication. It does not appear in CISA's Known Exploited Vulnerabilities catalog. We will update this report if that changes.
What should you do?
- Identify whether the affected product and versions run in your environment.
- Apply the vendor update listed in the advisory as soon as it is available.
- Limit network exposure of the affected service until it is patched.
- Monitor the vendor advisory for updated guidance or exploitation reports.
What to do and how to stay safe: CVE-2026-112397
- Vulnerability severity scores ignore your specific architecture and context.
- Exploitability depends on network exposure and user behavior, not just code flaws.
- Prioritization requires continuous asset inventory and threat intelligence alignment.
Risk-based vulnerability management focuses your limited resources on the flaws that actually threaten your business. Start by mapping your critical assets and checking for active exploits to prioritize your backlog.
Step-by-step guide: Risk-Based Vulnerability Management: Prioritize Fixes by Actual Danger
General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
What is CVE-2026-112397?
CVE-2026-112397 is a out-of-bounds write vulnerability in python-pillow Pillow.
How severe is CVE-2026-112397?
It has a CVSS score of 8.7 High.
Is CVE-2026-112397 being exploited?
There is no public confirmation of exploitation at the time of publication.


