PatchSiren cyber security CVE debrief
CVE-2026-59197 python-pillow CVE debrief
CVE-2026-59197 is a high-severity vulnerability in Pillow, a Python imaging library. A heap out-of-bounds write can occur when using the public rank-filter API with a very large odd filter size. This issue is fixed in version 12.3.0. The vulnerability exists due to ImageFilter.RankFilter.filter() calling image.expand(size // 2, size // 2) before rank-filter size validation, leading to unchecked signed int arithmetic in ImagingExpand(). Users of Pillow, especially those using versions prior to 12.3.0, should be aware of this vulnerability and take steps to mitigate it.
- Vendor
- python-pillow
- Product
- Pillow
- CVSS
- HIGH 8.2
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-14
- Original CVE updated
- 2026-07-21
- Advisory published
- 2026-07-14
- Advisory updated
- 2026-07-21
Who should care
Users of Pillow, especially those using versions prior to 12.3.0, should be aware of this vulnerability and take steps to mitigate it. This includes reviewing and validating input to the rank-filter API and monitoring for potential exploitation attempts.
Technical summary
The vulnerability exists in Pillow's public rank-filter API. When given a very large odd filter size, ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation. This can trigger a native heap out-of-bounds write due to unchecked signed int arithmetic in ImagingExpand(). The issue is fixed in version 12.3.0. Defensive priority should be given to updating Pillow to version 12.3.0 or later.
Defensive priority
High priority should be given to updating Pillow to version 12.3.0 or later.
Recommended defensive actions
- Update Pillow to version 12.3.0 or later
- Review and validate input to the rank-filter API
- Monitor for potential exploitation attempts
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record was published on 2026-07-14T17:17:14.487Z and was last modified on 2026-07-21T19:17:11.907Z. The NVD entry is currently Modified. This information is based on the provided source corpus. Further verification is recommended to ensure accuracy.
Official resources
-
CVE-2026-59197 CVE record
CVE.org
-
CVE-2026-59197 NVD detail
NVD
-
Source item URL
nvd_modified
-
Mitigation or vendor reference
[email protected] - Patch
-
Mitigation or vendor reference
[email protected] - Issue Tracking, Patch
-
Mitigation or vendor reference
[email protected] - Release Notes
-
Mitigation or vendor reference
[email protected] - Exploit, Vendor Advisory
AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-14T17:17:14.487Z and has not been modified since then. The NVD entry is currently Modified.