
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25576 is a heap buffer over-read vulnerability in ImageMagick affecting multiple raw image format coders (BGR, CMYK, GRAY, RAW, RGB, YCbCr). The flaw exists in ImageMagick versions prior to 7.1.2-15 (7.x branch) and prior to 6.9.13-40 (6.x branch), as well as Magick.NET prior to version 14.10.3. It was disclosed on February 23–24, 2026, via a GitHub Security Advisory (GHSA-jv4p-gjwq-9r2j). The vulnerability carries a CVSS v3.1 base score of 5.1 (Moderate) per the GitHub Advisory, or 5.5 (Medium) per NVD scoring (GitHub Advisory, Red Hat Bugzilla).
The root cause is an out-of-bounds read (CWE-125) and heap-based buffer over-read (CWE-122) in multiple raw image format handlers within ImageMagick's coders — specifically bgr.c, cmyk.c, gray.c, raw.c, rgb.c, and ycbcr.c. The vulnerability is triggered when an image is processed with -extract dimensions larger than the -size dimensions: the pixel-copying loop iterates using image->columns (the larger extract dimension) rather than the smaller canvas_image->columns, causing reads beyond the bounds of the heap-allocated canvas buffer. The fix introduces a columns variable set to MagickMin(image->columns, canvas_image->columns) and uses it as the loop bound, preventing over-read (GitHub Commit, GitHub Advisory). Exploitation requires local access and the ability to supply a crafted raw image file with mismatched dimensions.
Successful exploitation allows an attacker to read out-of-bounds heap memory, potentially disclosing sensitive information present in the process's heap at the time of image processing. The impact is limited to confidentiality — there is no integrity or availability impact. The attack vector is local, meaning the attacker must have the ability to supply a crafted image to a vulnerable ImageMagick process, which limits the scope of exposure but is relevant in shared hosting, image processing pipelines, or web applications that process user-supplied raw image files (GitHub Advisory, Red Hat Bugzilla).
-extract dimensions (width/height) are set larger than the -size dimensions, causing a mismatch between the canvas buffer size and the expected pixel read count.convert -size WxH -extract W2xH2 malicious.bgr output.png, where W2 > W and H2 > H.convert, magick) processes invoked with both -size and -extract options where extract dimensions exceed size dimensions; unexpected crashes or memory errors in ImageMagick processes..bgr, .cmyk, .gray, .raw, .rgb, .ycbcr) with mismatched dimension parameters; error messages referencing out-of-bounds memory access or segmentation faults in image coders.-size and -extract metadata in upload directories or temporary processing folders.Upgrade ImageMagick to version 7.1.2-15 or later (7.x branch) or 6.9.13-40 or later (6.x branch). Magick.NET users should upgrade to version 14.10.3 or later. As a workaround, restrict local access to systems running ImageMagick and implement input validation to reject raw image files with mismatched -extract and -size dimensions before processing. Linux distribution users should apply vendor-provided security updates (available for Debian, SUSE, Ubuntu, Amazon Linux 2, and openSUSE) (GitHub Advisory, Magick.NET Release).
Red Hat tracked the vulnerability via Bugzilla (Bug 2442093) and assigned it medium severity, with downstream packages under review. Multiple Linux distributions including Debian, SUSE, openSUSE, Ubuntu, and Amazon Linux 2 issued security advisories and package updates following the disclosure. No notable independent researcher commentary or significant social media discussion has been identified beyond standard vulnerability database and distribution advisory coverage (Red Hat Bugzilla).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."