Cloudanix VulnDB

CVE-2026-56376

Low · 3.7

CVSS

3.7

EPSS

0.3%

Published

Jun 23, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A malicious image file could cause systems that process images to crash or stop handling image jobs until they recover.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
High
Impact
Denial Of Service
Component
Application
Class
Use After Free
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

ImageMagick versions before 7.1.2-15 and 6.9.13-40 contain a heap use-after-free in the meta coder error-handling path. When a memory allocation fails while processing a crafted image file, the code can write a single byte through a stale heap pointer. Based on the published description and CVSS assessment, the expected impact is limited availability degradation or process crash rather than confidentiality or integrity compromise. Exploitation is remotely reachable wherever untrusted images are automatically processed, but it requires attacker-controlled image content and specific allocation-failure conditions, making reliable exploitation higher complexity.

Why it matters to the business

Systems that accept, transform, thumbnail, scan, or otherwise process user-supplied images with vulnerable ImageMagick versions may be susceptible to service disruption. A successful attack could crash image-processing workers, interrupt uploads, delay media pipelines, or cause repeated job failures. The vulnerability is not listed in CISA KEV, has low EPSS, no known public exploit maturity in the provided data, and is not associated with ransomware activity, so it should generally be prioritized as a stability and denial-of-service risk rather than an active widespread compromise risk.

How an attack unfolds

An attacker prepares a specially crafted image or file that reaches ImageMagick's meta coder. The attacker submits the file to an exposed workflow such as an upload endpoint, image conversion service, thumbnail generator, document previewer, email attachment processor, or batch media pipeline. During parsing, the crafted input drives the vulnerable code path and, if the necessary allocation failure occurs, ImageMagick writes one byte to memory that has already been freed. This can corrupt heap state and terminate the ImageMagick process or the calling worker process, producing a denial of service. There is no provided evidence of active exploitation, named threat actor use, ransomware use, or practical code-execution exploitation.

How to fix it

Upgrade ImageMagick to a fixed release: 7.1.2-15 or later for the 7.x branch, and 6.9.13-40 or later for the 6.x branch. Where ImageMagick is bundled by an operating system distribution, container image, language package, appliance, or third-party application, apply the vendor-provided patched package even if the displayed upstream version differs. If immediate upgrade is not possible, reduce exposure by rejecting or quarantining untrusted image uploads, disabling processing of rarely needed formats handled by the meta coder, enforcing strict file size and resource limits, running ImageMagick in a sandboxed low-privilege worker, isolating conversion workers from critical services, and using queue backoff/rate limits to prevent repeated crash loops.

How to confirm the fix worked

Confirm deployed versions with commands such as `magick -version`, `convert -version`, package-manager inventory, container image SBOMs, and application dependency scans. Verify that all active runtime images and hosts use ImageMagick 7.1.2-15 or later, 6.9.13-40 or later, or an equivalent vendor-backported fix. Check that image-processing services have been restarted after patching so they are not still using vulnerable libraries. Validate exposure by enumerating internet-facing and internal workflows that accept user-supplied images and confirming whether they invoke ImageMagick. For mitigations, test that resource limits, upload validation, sandboxing, and worker restart controls are in effect. Avoid using untrusted proof-of-concept files in production; perform any crash validation only in an isolated test environment.

Typical attack path

  1. Identify an application, service, or batch workflow that processes untrusted images using ImageMagick.
  2. Craft or obtain an image file that exercises the ImageMagick meta coder and triggers the vulnerable allocation-failure path.
  3. Submit the image through an upload, conversion, preview, thumbnailing, or automated ingestion mechanism.
  4. Cause ImageMagick to process the file under memory pressure or other conditions that make allocation failure reachable.
  5. Trigger a stale-pointer byte write, leading to heap corruption and likely process crash or failed image-processing job.
  6. Repeat submissions to create sustained denial of service against image-processing capacity.

How to detect it

To assess possible prior exploitation, review logs from applications that accept or process images, ImageMagick wrapper services, job queues, container orchestrators, system logs, and crash reporting systems. Look for repeated conversion failures, sudden worker exits, segmentation faults, heap corruption messages, out-of-memory events, or upload attempts followed immediately by service restarts. Correlate suspicious image submissions with timestamps of `magick` or `convert` process crashes, HTTP 5xx spikes, queue retries, pod/container restarts, and core dumps. Because the public description does not provide a unique malicious file signature, detection should focus on behavioral evidence: malformed or unusual image uploads, repeated attempts from the same source, crashes in ImageMagick meta coder processing, and availability incidents in image-processing pipelines. Preserve suspicious uploaded files, core dumps, stderr output, and package/version evidence for offline analysis in a sandbox.

  • magick: memory allocation failed
  • convert: memory allocation failed
  • MagickCore
  • meta coder
  • META
  • Segmentation fault
  • segfault at
  • use-after-free
  • heap-use-after-free
  • AddressSanitizer: heap-use-after-free
  • double free or corruption
  • malloc(): unaligned tcache chunk detected
  • free(): invalid pointer
  • corrupted size vs. prev_size
  • core dumped
  • convert[
  • magick[
  • /usr/bin/convert
  • /usr/bin/magick
  • /usr/local/bin/convert
  • /usr/local/bin/magick

What your security team should do

  • Inventory all direct and bundled ImageMagick deployments, including containers, CI/CD image-processing jobs, web upload handlers, document preview services, and third-party applications.
  • Patch to ImageMagick 7.1.2-15 or later, 6.9.13-40 or later, or the applicable vendor-backported package during the next standard maintenance cycle, with faster action for externally exposed upload or conversion services.
  • Prioritize systems that automatically process unauthenticated or internet-supplied image files because those are the most plausible remote attack surface.
  • Apply defense-in-depth controls for image processing: sandboxing, least privilege, resource limits, file size limits, format allowlists, queue rate limiting, and crash-loop alerting.
  • Search historical logs for repeated ImageMagick crashes, failed conversions, unusual meta/META file processing errors, or spikes in malformed image uploads around service disruptions.
  • Ensure monitoring alerts on repeated worker exits, segmentation faults, out-of-memory conditions, and conversion failures so denial-of-service attempts are visible.
  • Track vendor advisories for downstream products that bundle ImageMagick and patch those products separately from system packages.

The record

ImageMagick before 7.1.2-15 and 6.9.13-40 contains a heap use-after-free in the meta coder: when memory allocation fails, a single byte is written to a stale pointer. Remote attackers can trigger it by processing specially crafted image files, causing a denial of service.

Affected packages

Ecosystem Package Introduced Fixed
openSUSE:Leap 16.0 ImageMagick 0 7.1.2.0-160000.10.1
openSUSE:Tumbleweed ImageMagick 0 7.1.2.25-3.1

Related vulnerabilities