Skip to main content
HIGH

CVE-2026-59197

CVSS v3

8.2

HIGH

EPSS Score

0.4 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for pillow.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • pillowPyPIall versions · fixed in 12.3.0
  • pillowBitnamiall versions · fixed in 12.3.0
  • python3-pillowAlmaLinux:8all versions · fixed in 5.1.1-23.el8_10and 3 other packages

Vendor advisories

  • CVE-2026-59197 Red Hat Product Security248 products fixed · 22 known affected

    Pillow: Pillow: Native heap out-of-bounds write

    exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 as a component of Exploit Intelligence · lightspeed-core/lightspeed-stack-rhel9 as a component of Lightspeed Core · lightspeed-core/rag-tool-cpu-rhel9 as a component of Lightspeed Core

  • RHSA-2026:81110 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Quay

  • RHSA-2026:76150 Red Hat Product Security7 products fixed

    Red Hat Security Advisory: Red Hat Enterprise Linux AI 3.4.5 security update

  • RHSA-2026:76149 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Enterprise Linux AI 3.4.5 security update

  • RHSA-2026:73987 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: RHOAI 3.3.7 - Red Hat OpenShift AI

  • RHSA-2026:70996 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat AI Inference Model Optimization Tools 3.4.5 (cuda)

26 more advisories

Full record on NVD

Description

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.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Published
2026-07-14
Last Modified
2026-07-15
GitHub Advisory
GHSA-xj96-63gp-2gmr

Frequently asked questions

What is CVE-2026-59197?

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.

Is CVE-2026-59197 actively exploited?

Active exploitation of CVE-2026-59197 has not been confirmed. Its EPSS score was 0.4% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-59197?

CVE-2026-59197 has a CVSS v3 base score of 8.2 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H.

Running pillow? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month