Cloudanix VulnDB

CVE-2026-61857

Low · 3.7

CVSS

3.7

EPSS

0.3%

Published

Jul 11, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A specially made image file can crash software that uses older ImageMagick versions to process image metadata.

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

What it actually does

ImageMagick before 7.1.2-26 has a heap use-after-free condition in XMP profile parsing. A crafted image containing malformed or specially structured XMP metadata can cause ImageMagick to reference freed heap memory during parsing. Based on the published impact and CVSS vector, the expected consequence is low availability impact, most likely a process crash or denial of service in software that automatically processes untrusted images. No confirmed confidentiality or integrity impact is indicated by the provided data.

Why it matters to the business

Organizations that use ImageMagick to process user-supplied or externally sourced images may experience crashes in image conversion, thumbnailing, upload processing, document rendering, or media pipeline services if malicious files are submitted. The vulnerability is not currently in CISA KEV, has low EPSS, no known exploit maturity, and is not reported in ransomware campaigns, so urgency is moderate to low; however, internet-facing or automated image-processing workflows should still prioritize remediation because a single malformed file may disrupt dependent services.

How an attack unfolds

An attacker prepares an image file with a deliberately malformed XMP profile that triggers the missing null-check/use-after-free condition during metadata parsing. The attacker then delivers the file to an application, service, or workflow that invokes a vulnerable ImageMagick version, such as an upload feature, image conversion API, thumbnail generator, content moderation pipeline, or batch media processor. When ImageMagick parses the XMP metadata, the process may dereference memory that has already been freed, causing the image-processing process or its parent job to crash. Practical exploitation likely requires knowledge of how the target processes images and may be less reliable due to the high attack complexity and required attack conditions reflected in the CVSS vector.

How to fix it

Upgrade ImageMagick to version 7.1.2-26 or later. If using operating-system packages, vendor-maintained backports may carry the fix without exposing the same upstream version number, so validate against the distribution advisory as well as the installed package changelog. Rebuild or redeploy container images, serverless functions, application bundles, CI workers, and media-processing workers that include ImageMagick. If immediate upgrade is not possible, reduce exposure by blocking or stripping XMP metadata from untrusted images before ImageMagick processing, isolating image conversion in a sandboxed worker with resource limits, disabling processing of untrusted image uploads where feasible, and ensuring failed image-processing jobs do not affect broader application availability.

How to confirm the fix worked

Confirm that all installed ImageMagick binaries and linked application images are version 7.1.2-26 or later, or that the platform vendor has backported the fix. Run `magick -version`, `convert -version`, or package-manager queries such as `rpm -q ImageMagick`, `dpkg -l | grep -i imagemagick`, or equivalent container image inventory checks. Validate that production and build-time container images no longer include vulnerable packages. Where safe and authorized, test with a non-malicious regression sample or vendor-provided proof-of-fix test case to confirm XMP parsing no longer crashes the process. Review application upload and conversion paths to verify that all use the patched binary rather than an older bundled copy.

Typical attack path

  1. Identify an application or workflow that accepts or processes image files using ImageMagick before 7.1.2-26.
  2. Craft an image file containing malformed XMP metadata designed to trigger the heap use-after-free condition.
  3. Submit, upload, email, or otherwise place the malicious image where the vulnerable processing workflow will handle it.
  4. Wait for ImageMagick or a linked library/tooling wrapper to parse the XMP profile during identify, convert, resize, thumbnail, or metadata extraction operations.
  5. Cause the ImageMagick process or dependent job to crash, potentially interrupting image-processing functionality or causing queue/job failures.

How to detect it

To determine whether this vulnerability may have already been triggered, review logs from applications that accept or transform images, upload services, media-processing queues, thumbnail generators, web servers, container orchestrators, and system crash logs. Look for repeated crashes or abnormal exits of `magick`, `convert`, `identify`, or application workers immediately after processing image uploads, especially files containing XMP metadata. Correlate HTTP upload events, object-storage writes, message-queue jobs, and worker crashes by timestamp and source. Examine core dumps, crash reports, kernel logs, systemd journal entries, container restart events, and application stack traces for ImageMagick failures during XMP/profile parsing. Because no public exploit indicators or threat actor activity are provided, detection should focus on behavioral evidence: malformed image submissions followed by ImageMagick process termination, repeated retries of the same image-processing job, or clusters of crashes tied to the same uploaded file or source address.

  • magick
  • convert
  • identify
  • ImageMagick
  • XMP profile
  • xmp
  • profile
  • use-after-free
  • heap-use-after-free
  • Segmentation fault
  • segfault
  • SIGSEGV
  • core dumped
  • Aborted
  • malloc
  • free():
  • double free
  • invalid pointer
  • MagickCore
  • MagickWand
  • exif:XMP
  • xmpMM
  • rdf:RDF
  • <x:xmpmeta

What your security team should do

  • Inventory ImageMagick usage across servers, containers, build images, application dependencies, media pipelines, and third-party processing components.
  • Upgrade all ImageMagick installations to 7.1.2-26 or later, or apply the relevant vendor backport.
  • Prioritize internet-facing upload/conversion services and automated processing of untrusted images, even though current EPSS and exploit maturity are low.
  • Add sandboxing, job isolation, memory limits, and automatic worker restart controls around image-processing services to limit denial-of-service impact.
  • Temporarily strip or reject XMP metadata from untrusted images if patching cannot be completed promptly.
  • Monitor image-processing crash rates, failed conversion jobs, and repeated submissions of files with malformed XMP metadata.
  • Ensure container and artifact rebuilds actually remove vulnerable ImageMagick versions rather than only patching base hosts.

The record

ImageMagick before 7.1.2-26 contains a heap use-after-free vulnerability caused by missing null check when parsing XMP profiles. Attackers can craft malicious image files with specially crafted XMP data to trigger the vulnerability and cause application crashes.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities