
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25638 is a memory leak vulnerability in ImageMagick's MSL (Magick Scripting Language) image coder, specifically within the WriteMSLImage function in coders/msl.c. The function allocates resources but returns early without releasing them, enabling a network attacker to exhaust system memory and cause denial of service. It affects 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 NuGet packages prior to version 14.10.3. Disclosed on February 23–24, 2026, it carries a CVSS v3.1 base score of 5.3 (Medium) (GitHub Advisory, Red Hat Bugzilla).
The root cause is classified as CWE-401 (Missing Release of Memory after Effective Lifetime) and CWE-772 (Missing Release of Resource after Effective Lifetime). In the WriteMSLImage function within coders/msl.c, memory is allocated via malloc during MSL image processing, but certain early-return code paths fail to free those allocations before exiting. Valgrind analysis confirmed approximately 177,196 bytes (13,512 direct, 163,684 indirect) are definitively lost per invocation. An unauthenticated remote attacker can trigger this leak by submitting crafted MSL image files to any service that processes them with ImageMagick, requiring no privileges or user interaction (GitHub Advisory, Github Advisory).
Successful exploitation results in progressive memory exhaustion on the affected host, with no impact to confidentiality or data integrity. Repeated submission of malicious MSL image files can degrade or fully deny availability of the ImageMagick service and potentially destabilize the host operating system if memory is sufficiently exhausted. Systems that expose ImageMagick-based image processing over a network (e.g., web applications, media processing pipelines) are at greatest risk (GitHub Advisory, Red Hat Bugzilla).
There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation at this time (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.039% (roughly the 6th percentile), indicating a low near-term probability of exploitation (Github Advisory). No threat actor attribution has been reported.
.msl) designed to trigger the WriteMSLImage function's early-return code path, causing resource allocation without subsequent deallocation.convert, magick, or application worker processes) without corresponding release; OOM killer events in system logs..msl files or MSL-format image submissions; error messages related to memory allocation failures in ImageMagick logs.top, htop, or ps.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 an interim workaround, restrict network access to services that process MSL image files, or disable MSL coder support in ImageMagick's policy configuration (/etc/ImageMagick-*/policy.xml) by setting <policy domain="coder" rights="none" pattern="MSL" />. Monitor system memory usage on affected hosts for signs of exhaustion until patching is complete (GitHub Advisory, Red Hat Bugzilla).
The vulnerability was reported by researcher unbengable12 and patched by ImageMagick maintainer dlemstra. Multiple Linux distributions including SUSE, Debian, and Ubuntu have issued security advisories and updated packages. Red Hat tracked the issue via Bugzilla and classified it as medium severity. No significant social media discussion or notable researcher commentary beyond standard distribution advisories has been observed (GitHub Advisory, Red Hat Bugzilla).
Fix availability across major Linux distributions and their releases.
bookworm
imagemagick: 8:6.9.11.60+dfsg-1.6+deb12u7
sid
imagemagick: 8:7.1.2.15+dfsg1-1
trixie
imagemagick: 8:7.1.1.43+dfsg1-1+deb13u6
bionic (esm-infra)
imagemagick: 8:6.9.7.4+dfsg-16ubuntu6.15+esm12
devel
imagemagick
focal (esm-apps)
imagemagick: 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm10
jammy
imagemagick
jammy (esm-apps)
imagemagick: 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm10
noble
imagemagick
noble (esm-apps)
imagemagick: 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm9
questing
imagemagick: 8:7.1.2.3+dfsg1-1ubuntu0.1
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."