CVE-2026-61857

ImageMagick before 7.1.2-26 Heap Use-After-Free via XMP

Published Jul 11, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

ImageMagick versions prior to 7.1.2-26 contain a heap use‑after‑free flaw caused by a missing null check when parsing XMP profiles. This issue exemplifies CWE-476 (null pointer dereference) and CWE-252 (unchecked return value). A crafted XMP payload can trigger the bug, leading the image‑processing engine to crash and terminate the process. The vulnerability does not expose data or allow code execution, but it can be used to disrupt availability of services that rely on ImageMagick for image handling.

Affected Systems

The affected vendor is ImageMagick; product ImageMagick. All installations running any version earlier than 7.1.2-26 are potentially impacted. Updated releases beginning with 7.1.2-26 contain the fix.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity, and the EPSS score is <1%, indicating a very low probability of exploitation. The flaw is not listed in the CISA KEV catalog. Because the description mentions the manipulation of an image file, the likely attack vector is through files that an application accepts for processing—either a local file upload or remote image download. Exploitation would simply crash the image‑processing process, possibly causing a denial of service to a web application, media server, or other service that relies on ImageMagick.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to ImageMagick 7.1.2-26 or later to eliminate the use‑after‑free bug, which mitigates CWE-476 and CWE-252.
  • If an upgrade cannot be performed immediately, configure the image‑processing pipeline to reject or strip XMP metadata before parsing any image files, preventing the trigger of null pointer dereference (CWE-476).
  • Implement monitoring for unexpected crashes or abnormal resource usage that may indicate attempted exploitation of the XMP handling code.

Generated by OpenCVE AI on August 1, 2026 at 11:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4696-1 imagemagick security update
Ubuntu USN Ubuntu USN USN-8739-1 ImageMagick vulnerabilities
Ubuntu USN Ubuntu USN USN-8739-2 ImageMagick vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title ImageMagick before 7.1.2-26 Heap Use-After-Free via XMP
First Time appeared Imagemagick
Imagemagick imagemagick
Weaknesses CWE-252
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Vendors & Products Imagemagick
Imagemagick imagemagick
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:16 PM
Reserved
Jul 10, 2026, 9:53 PM
Status
Analyzed
Published
Jul 11, 2026, 2:16 PM
Modified
Oct 29, 2026, 9:17 PM
Severity
Moderate
Public date
Jul 11, 2026, 1:01 PM