Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109278 Overview
CVE-2026-109278 is a memory leak vulnerability [CWE-401] in ImageMagick affecting versions before 6.9.13-57 and 7.x before 7.1.2-32. The flaw resides in the wavelet-denoise operation within visual-effects.c. When the operation attempts to acquire the WidthResource and the acquisition fails, the code throws an exception without releasing the previously allocated noise_image. Attackers can repeatedly trigger the wavelet-denoise processing under resource-constrained conditions to progressively leak memory and degrade service availability.
Critical Impact
Remote attackers can submit crafted image processing requests to leak memory incrementally, leading to denial of service against applications and web services that expose ImageMagick wavelet-denoise functionality.
Affected Products
- ImageMagick versions before 6.9.13-57
- ImageMagick 7.x versions before 7.1.2-32
- Applications and services embedding vulnerable ImageMagick builds for image processing
Discovery Timeline
- 2026-10-12 - CVE-2026-109278 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-109278
Vulnerability Analysis
The vulnerability occurs in the wavelet-denoise image processing routine in MagickCore/visual-effects.c (and magick/visual-effects.c in ImageMagick 6). The function allocates a noise_image buffer early in processing. It then calls AcquireMagickResource(WidthResource, 4*image->columns) to reserve width resources required for the denoising computation.
When the resource acquisition fails, the original code invokes ThrowImageException with ResourceLimitError without first calling DestroyImage(noise_image). The noise_image allocation remains orphaned on the heap. Repeated invocations under constrained resource conditions accumulate leaked memory until the process exhausts available address space or triggers out-of-memory conditions.
Root Cause
The root cause is improper cleanup on an error path [CWE-401 Missing Release of Memory after Effective Lifetime]. The exception handler bypasses the normal deallocation sequence, leaving noise_image unreleased. Resource acquisition failures are expected under memory pressure, making the error path reachable by attackers who can influence available system resources or image dimensions.
Attack Vector
An unauthenticated remote attacker submits images processed through the wavelet-denoise operator. By repeatedly triggering the operation while system resources approach limits, the attacker causes incremental memory leakage. The attack requires no user interaction and targets availability of the host process. Common exposure points include web applications accepting user-uploaded images, document conversion pipelines, and thumbnail generation services.
return((Image *) NULL);
}
if (AcquireMagickResource(WidthResource,4*image->columns) == MagickFalse)
- ThrowImageException(ResourceLimitError,"MemoryAllocationFailed");
+ {
+ noise_image=DestroyImage(noise_image);
+ ThrowImageException(ResourceLimitError,"MemoryAllocationFailed");
+ }
pixels_info=AcquireVirtualMemory(4*image->columns,image->rows*
sizeof(*pixels));
kernel=(float *) AcquireQuantumMemory(MagickMax(image->rows,image->columns)+1,
Source: ImageMagick Commit 15892fc0. The patch wraps the exception throw in a block that first calls DestroyImage(noise_image) before raising the error, correctly releasing the allocated buffer on the failure path.
Detection Methods for CVE-2026-109278
Indicators of Compromise
- Progressive growth of resident set size (RSS) in ImageMagick worker processes without corresponding workload increases
- Repeated ResourceLimitError: MemoryAllocationFailed entries in ImageMagick or application logs
- High volumes of image processing requests invoking the -wavelet-denoise operator from a single source
- Out-of-memory kills (OOMKills) targeting image processing containers or workers
Detection Strategies
- Audit application code and configuration for exposure of the wavelet-denoise operator to untrusted input
- Inspect installed ImageMagick versions against 6.9.13-57 and 7.1.2-32 baselines using convert -version or package manager queries
- Correlate web access logs with image processing worker memory metrics to identify suspicious request patterns
Monitoring Recommendations
- Alert on sustained memory growth in processes linked against libMagickCore or libMagickWand
- Monitor error logs for repeated MemoryAllocationFailed exceptions from the wavelet-denoise code path
- Track request rates for endpoints that accept image parameters influencing denoise operations
How to Mitigate CVE-2026-109278
Immediate Actions Required
- Upgrade ImageMagick to version 6.9.13-57 or later for the 6.x branch
- Upgrade ImageMagick to version 7.1.2-32 or later for the 7.x branch
- Restart all services and worker processes that link against the ImageMagick libraries after patching
- Review application exposure of the wavelet-denoise operator and restrict access where feasible
Patch Information
The official patches are available in the upstream repositories. For ImageMagick 7.x, see ImageMagick Commit 15892fc0. For ImageMagick 6, see ImageMagick6 Commit 0d2544e6. Additional context is published in the GitHub Security Advisory GHSA-9f9w-84g3-vp2c and the VulnCheck Memory Leak Advisory.
Workarounds
- Disable the wavelet-denoise operator via policy.xml using a <policy domain="filter" rights="none" pattern="wavelet-denoise" /> entry until patching is complete
- Enforce strict memory, width, and height resource limits in policy.xml to constrain exploitation impact
- Rate-limit image processing endpoints at the application or reverse proxy layer to slow repeated abuse
- Isolate image processing workloads in containers with per-process memory limits so leaks trigger controlled restarts
# Example /etc/ImageMagick-7/policy.xml hardening
<policymap>
<policy domain="filter" rights="none" pattern="wavelet-denoise" />
<policy domain="resource" name="memory" value="256MiB" />
<policy domain="resource" name="map" value="512MiB" />
<policy domain="resource" name="width" value="8KP" />
<policy domain="resource" name="height" value="8KP" />
</policymap>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

