CVE-2026-61870
Low · 2.9CVSS
2.9
EPSS
0.2%
Published
Jul 11, 2026
CISA due date
—
Cloudanix analysis
A malformed image file can make image-processing services run out of memory and stop working until they are restarted or patched.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Application
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
ImageMagick versions before 7.1.2-26 have a memory leak in the VIFF encoder error path when memory allocation fails. A specially crafted VIFF image can force allocation failures during image processing; the vulnerable encoder then fails to release memory correctly, allowing repeated or large processing attempts to consume available memory and degrade or terminate the ImageMagick process. The impact is denial of service rather than code execution or data disclosure, and exploitation requires the vulnerable software to process attacker-controlled image content under resource pressure.
Why it matters to the business
Systems, services, or batch jobs that accept or transform user-supplied images with ImageMagick could become slow, unstable, or unavailable if crafted VIFF files are processed repeatedly. The likely operational impact is service disruption, failed media-processing queues, increased memory pressure on shared hosts or containers, and potential cascading failures where image conversion is part of a larger workflow. The low CVSS score, low EPSS score, lack of known exploitation, and absence from the CISA KEV catalog indicate lower urgency than remotely exploitable takeover flaws, but internet-facing upload or image-conversion services should still patch during the next normal maintenance window.
How an attack unfolds
An attacker first identifies an application, service, command-line workflow, or automated pipeline that uses a vulnerable ImageMagick version to process uploaded or supplied images. The attacker submits a specially crafted VIFF image, or a file that is routed into ImageMagick's VIFF handling path. During encoding or conversion, the image triggers memory allocation failure conditions. Because vulnerable versions leak memory when this failure path is reached, repeated processing attempts or sufficiently resource-intensive inputs can progressively exhaust memory available to the ImageMagick process, worker container, or host. The result is failed conversions, crashed workers, service degradation, or temporary denial of service until the process is restarted, memory is reclaimed, or resource limits stop further processing.
How to fix it
Upgrade ImageMagick to version 7.1.2-26 or later wherever ImageMagick processes untrusted or semi-trusted images. If operating-system packages are used, apply the vendor-provided package update that backports the fix, even if the displayed upstream version differs. Where immediate patching is not possible, reduce exposure by blocking or disabling VIFF input/output handling if not business-critical, rejecting .viff and VIFF-formatted uploads, enforcing strict file size and pixel-dimension limits, running ImageMagick with memory, map, disk, and time limits via policy.xml or container controls, and isolating image conversion workers from critical services. Ensure automated image-processing queues have retry limits so a malicious file cannot be processed indefinitely.
How to confirm the fix worked
Confirm the installed ImageMagick version is 7.1.2-26 or later, or that the platform vendor has shipped a patched backport. Use commands such as `magick -version`, `convert -version`, or package-manager inventory to identify deployed versions. Review ImageMagick policy configuration to verify resource limits are enforced for memory, map, disk, area, width, height, and time. Test upload and conversion paths to confirm VIFF files are either rejected or processed by a patched binary. In containerized deployments, verify memory limits and restart policies are configured so a single conversion job cannot exhaust shared host resources.
Typical attack path
- Find an application, API, upload feature, document conversion service, or batch-processing workflow that invokes ImageMagick on untrusted files.
- Submit or place a crafted VIFF image for processing by the vulnerable ImageMagick installation.
- Cause ImageMagick to enter the VIFF encoder allocation-failure path during conversion or encoding.
- Repeat submissions or use resource-intensive inputs to accumulate leaked memory.
- Exhaust process, container, or host memory sufficiently to cause failed jobs, worker crashes, restarts, throttling, or service unavailability.
How to detect it
To determine whether this flaw was already abused, review application upload logs, API gateway logs, web server logs, image-processing job logs, container events, and host telemetry for VIFF files processed by ImageMagick followed by memory exhaustion, worker crashes, process kills, or repeated conversion failures. Look for requests or jobs involving `.viff` files, MIME types associated with VIFF, repeated invocations of `magick` or `convert`, and error messages indicating failed memory allocation or exhausted ImageMagick resource limits. On Linux hosts and containers, correlate ImageMagick activity with kernel OOM killer messages, container OOMKilled events, abnormal RSS growth, and restarts of media-processing workers. Because this is a denial-of-service issue rather than a persistence or code-execution vulnerability, there may be no durable artifact beyond submitted files, processing logs, crash records, queue metadata, and resource-exhaustion telemetry.
- .viff
- VIFF
- image/x-viff
- image/viff
- magick
- convert
- memory allocation failed
- Memory allocation failed
- cache resources exhausted
- Cache resources exhausted
- resource limit exceeded
- ResourceLimitError
- OOMKilled
- Out of memory: Killed process
- Killed process convert
- Killed process magick
- policy.xml
What your security team should do
- Inventory all applications, containers, CI/CD jobs, media-processing workers, and serverless functions that include ImageMagick or invoke `magick`/`convert`.
- Prioritize upgrade of systems that process untrusted image uploads, email attachments, documents, archives, or externally supplied media.
- Patch to ImageMagick 7.1.2-26 or later, or install the appropriate vendor-backported package fix.
- If patching is delayed, block VIFF files and disable unnecessary coders in ImageMagick policy where feasible.
- Enforce ImageMagick resource limits and operating-system or container memory limits for all image-processing workloads.
- Add monitoring for abnormal memory growth, repeated conversion failures, worker restarts, and spikes in VIFF processing.
- Review recent logs for suspicious VIFF submissions or repeated ImageMagick allocation/resource errors, especially against public upload endpoints.
The record
ImageMagick before 7.1.2-26 contains a memory leak vulnerability in the VIFF encoder when memory allocation fails. Attackers can trigger allocation failures by processing specially crafted VIFF images to exhaust available memory and cause denial of service.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-120678 A memory management flaw in the MongoDB C Driver's handling of compressed responses may… CWE-401
- CVE-2026-121512 Memory Leak with Amplification in µD3TN BPv6 EID Reference Handling allows… CWE-401
- CVE-2026-120440 QuickJS-NG before 0.16.0 contains a memory leak vulnerability in js_atomics_store() in… CWE-401
- CVE-2026-119286 GraphQL-core is a Python port of the GraphQL.js reference implementation. CWE-401
- CVE-2026-116157 ImageMagick before 7.1.2-33 contains a memory leak vulnerability in PerlMagick that fails… CWE-401
- CVE-2026-116158 ImageMagick before 7.1.2-33 contains a memory leak vulnerability in the magick compare… CWE-401
- CVE-2026-116159 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in the… CWE-401
- CVE-2026-116156 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak caused by a… CWE-401