
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-27798 is a heap buffer over-read vulnerability in ImageMagick's WaveletDenoiseImage function, triggered when processing images with small dimensions using the -wavelet-denoise operator. It was disclosed on February 24, 2026, and affects ImageMagick versions prior to 7.1.2-15 and 6.9.13-40, as well as the Magick.NET .NET wrapper prior to version 14.10.3. The vulnerability carries a CVSS v3.1 base score of 4.0 (Moderate) per the GitHub Security Advisory, though Feedly's NVD-sourced data assigns a higher score of 7.1 (High) reflecting different scoring assumptions (Github Advisory, ImageMagick Advisory).
The root cause is an insufficient memory allocation in MagickCore/visual-effects.c within the WaveletDenoiseImage function (CWE-125: Out-of-bounds Read; CWE-126: Buffer Over-read). Specifically, the buffer was allocated using 3*image->columns rows instead of the required 4*image->columns, causing a 4-byte heap over-read when processing images whose dimensions are too small for the wavelet decomposition algorithm to operate within the allocated buffer bounds. The fix, committed as 0377e60, corrects the multiplier from 3 to 4 in the AcquireVirtualMemory call (ImageMagick Commit, ImageMagick Advisory). Exploitation requires a locally accessible attacker (or a crafted image submitted to a service) with no user interaction needed beyond invoking the -wavelet-denoise operator on a specially crafted small-dimension image.
Successful exploitation results in a heap buffer over-read, primarily impacting confidentiality by potentially exposing adjacent heap memory contents to an attacker — this could include sensitive data processed by the application. Integrity is not directly affected, and availability impact is limited to potential application crashes due to the memory safety violation. In environments where ImageMagick processes user-supplied images (e.g., web services, document pipelines), the risk of information disclosure from heap memory is the primary concern (Github Advisory, Red Hat Bugzilla).
-wavelet-denoise operator.convert tiny.png -wavelet-denoise 0.1 output.png) or through an application interface that invokes ImageMagick with wavelet denoising.WaveletDenoiseImage function allocates a buffer using 3*image->columns instead of 4*image->columns, causing a 4-byte read beyond the allocated heap buffer during wavelet decomposition.heap-buffer-overflow in WaveletDenoiseImage or visual-effects.c; crash reports with stack traces pointing to MagickCore/visual-effects.c around line 3569.convert, magick) when processing small-dimension images with -wavelet-denoise.Upgrade ImageMagick to version 7.1.2-15 or later (for the 7.x branch) or 6.9.13-40 or later (for the 6.x branch). Magick.NET users should upgrade to version 14.10.3 or later. As a workaround where patching is not immediately possible, restrict or disable use of the -wavelet-denoise operator on untrusted or user-supplied images, and enforce minimum image dimension requirements before processing. Distribution-specific patches have been issued for Debian, SUSE, and Amazon Linux 2 (ImageMagick Advisory, Magick.NET Release, Red Hat Bugzilla).
The vulnerability was reported by security researcher ylwango613 and patched promptly by the ImageMagick maintainers. Red Hat tracked the issue via Bugzilla and classified it as medium severity for information disclosure. Distribution vendors including Debian, SUSE, and Amazon Linux issued security updates incorporating the fix. No significant broader media coverage or notable social media discussion has been observed beyond standard vulnerability tracking channels (ImageMagick Advisory, 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."