{"cve":"CVE-2026-59197","nvd":{"published":"2026-07-14T17:17:14.487","modified":"2026-10-24T21:10:00.130","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2},"cwes":["CWE-190","CWE-787"],"references":["https://github.com/python-pillow/Pillow/commit/cce3bdb867c77a3420261ed1bfdb6b0787ec8fc1","https://github.com/python-pillow/Pillow/pull/9695","https://github.com/python-pillow/Pillow/releases/tag/12.3.0","https://github.com/python-pillow/Pillow/security/advisories/GHSA-xj96-63gp-2gmr","https://github.com/python-pillow/Pillow/security/advisories/GHSA-xj96-63gp-2gmr"],"products":["python:pillow"],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-59197","score":0.00445,"percentile":0.38465,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-xj96-63gp-2gmr","url":"https://osv.dev/vulnerability/GHSA-xj96-63gp-2gmr","summary":"Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`","modified":"2026-09-10T03:50:53.192759645Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":["<12.3.0"],"fixed":["12.3.0"]}]},{"id":"PYSEC-2026-3454","url":"https://osv.dev/vulnerability/PYSEC-2026-3454","summary":"","modified":"2026-07-22T11:11:36.231472645Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":["<12.3.0"],"fixed":["12.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}