Feed
8.2HIGH

CVE-2026-59197Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`

A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.6% chance of exploitation in the next 30 days. A fixed version is named.

Exploited in the wild
Not in KEV
EPSS
0.6%
percentile 42%
Priority
40/100 medium
how it is computed
Fix
Named by a source
CVE published 14 Jul 2026

Reference

None of the "Needs attention" rules apply right now.

EPSS 0.6% (+1) · Public exploit or proof of concept (+15) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)

Immediate actions

Who should check

  • pillow (PyPI) pkg:pypi/pillow

    • Affected< 12.3.0Fixed in12.3.0OSV (PYSEC-2026-3454)
  • python pillow product:python/pillow

    • Affected< 12.3.0Affected range ends before12.3.0as published by CPE data (via the NVD API)
  • python-pillow Pillow product:pythonpillow/pillow

    • Affected< 12.3.0Affected range ends before12.3.0as published by CNA (CVE List)

Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.

Confirmed facts

CVSS
8.2 HIGH (version 3.1)
Score from
CNA ([email protected])
Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Weakness
CWE-190, CWE-787
Exploitation (CISA SSVC)
poc
Automatable (CISA SSVC)
yes
Assigned by
[email protected]

Unknowns

  • We show one CVSS score. Other sources may score this CVE differently.

Advisory text

Quoted from the source advisory (untrusted)Pillow is a Python imaging library. Prior to 12.3.0, Pillow's public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.

Update history

  • 14 Jul 2026Published

References

Sources

This page is our own presentation: records are shortened, normalised and merged. Licences

Last checked: kev 31 min ago · osv 31 min ago · nvd just now · epss 31 min ago · JSON · ask via MCP: explain_vulnerability

Also known as BIT-pillow-2026-59197, GHSA-xj96-63gp-2gmr, PYSEC-2026-3454