Bug 2572871 (CVE-2026-128066)

Summary: CVE-2026-128066 pillow: Pillow: Denial of Service via crafted image metadata parsing
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: alinfoot, anpicker, aprice, aruklets, bbrownin, bcaton, cmyers, dfreiber, dnakabaa, doconnor, drow, dtrifiro, ebourniv, ehelms, hasun, ilpinto, jburrell, jfula, jlanda, jmitchel, jowilson, jpasqual, jsamir, juwatts, jwong, kaycoth, kshier, lblicha, lcouzens, ltomasbo, mhayden, mhulan, mwoodson, nyancey, oezr, ogajduse, ometelka, osousa, ptisnovs, rbobbitt, rchan, rhel-process-autobot, sbunciak, sdoran, shudeshp, simaishi, smallamp, stcannon, syedriko, tguha, vkumar, watson-tool-maintainers, weaton, xdharmai, yguenane, ykashtan, zhunting
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in Pillow. A remote attacker can exploit this vulnerability by supplying a specially crafted image file containing malicious metadata, such as TIFF or EXIF tags. Because the metadata parser does not properly restrict memory allocation when processing these tags, reading the image can trigger excessive memory consumption, resulting in process memory exhaustion and a Denial of Service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-12 22:51:24 UTC
Pillow is a Python imaging library. From 1.0 through 12.3.0, ImageFileDirectory_v2.load() in src/PIL/TiffImagePlugin.py retains a separate bytes object for each out-of-line IFD tag value without limiting the total data read or preventing distinct tags from referencing the same file region. A small crafted TIFF or EXIF-bearing JPEG, PNG, WebP, or MPO can therefore cause memory use quadratic in the input size. TIFF and some JPEG paths trigger parsing during Image.open(), while other formats are exposed when EXIF is requested, including through getexif() or ImageOps.exif_transpose(). The declared pixel dimensions do not bound this metadata allocation, so decompression-bomb checks do not prevent process memory exhaustion. This issue is fixed in version 13.0.0.