Skip to main content

Imagemagick CVE-2025-53015

HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2025-07-14 security-advisories@github.com GHSA-vmhh-8rxq-fp9g
7.5
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS score of 7.5 reflects a high-severity denial-of-service risk with three critical factors: (1) AV:N (network-accessible) and AC:L (low complexity) indicate this is trivially exploitable remotely without special conditions; (2) PR:N and UI:N mean no privileges or user interaction required; (3) A:H (availability impact) confirms service disruption. The CWE-835 classification (Infinite Loop) is a well-understood and reliably exploitable flaw. Real-world risk is ELEVATED because: ImageMagick is ubiquitously deployed in web applications, content management systems, image processing pipelines, and API services. An attacker can remotely DOS a service by uploading or referencing a malicious XMP file. However, this is availability-only (no data breach or system compromise), making it less critical than RCE or authentication bypass vulnerabilities. Organizations heavily dependent on image processing services face direct operational risk; others should treat this as medium priority. The existence of a clear patch (7.1.2-0) lowers exploitability post-patch.

Exploit ScenarioDerived

An attacker discovers a web application that accepts image uploads for processing (common in e-commerce, social media, or document management systems). The application uses ImageMagick to convert/optimize uploaded images. The attacker crafts a malicious XMP file with a loop-inducing structure (e.g., nested or circular XMP metadata elements) and uploads it. The application's ImageMagick process enters an infinite loop during XMP conversion, consuming 100% CPU on one core and potentially memory. If the application runs a single-threaded or limited-concurrency process pool, repeated uploads exhaust all workers, and the service becomes unresponsive to legitimate users. A single small XMP file can trigger this—no large payload required. No proof-of-concept code is required beyond a specially crafted XMP file. The AV:N and AC:L ratings confirm this is extremely straightforward to exploit; the attacker doesn't need to be authenticated, interact with a user, or bypass any access controls. Severity is amplified in multi-tenant or high-availability scenarios where one malicious upload could impact many users.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 16, 2026

CVE-2025-53015 is a denial-of-service vulnerability in ImageMagick versions prior to 7.1.2-0 that causes infinite loops during XMP file conversion operations. An unauthenticated attacker can trigger this vulnerability remotely by submitting a maliciously crafted XMP file, resulting in resource exhaustion and service unavailability. The vulnerability has a CVSS score of 7.5 (High) due to its network-exploitable nature and availability impact, though it does not affect confidentiality or integrity.

RemediationAI

Immediate remediation: upgrade ImageMagick to version 7.1.2-0 or later. Vendor patch is available as of the release date of 7.1.2-0. Interim mitigations if upgrade is delayed: (1) disable or restrict XMP file processing if not required; (2) implement input validation to reject XMP files or limit processing to trusted sources; (3) add timeout/resource limits to ImageMagick process execution (ulimit, cgroups) to prevent full system exhaustion; (4) deploy rate limiting on image upload/conversion endpoints; (5) consider using alternative image processing libraries for XMP handling if available; (6) monitor process resource usage for signs of infinite loops. For containerized deployments, rebuild images with ImageMagick 7.1.2-0+. For package managers (apt, yum, brew), update via standard channels once packages are available.

Affected Packages

nuget magick.net-q16-anycpu fix: 14.7.0
nuget magick.net-q16-arm64 fix: 14.7.0
nuget magick.net-q16-hdri-anycpu fix: 14.7.0
nuget magick.net-q16-hdri-arm64 fix: 14.7.0
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.7.0
nuget magick.net-q16-hdri-openmp-x64 fix: 14.7.0
nuget magick.net-q16-hdri-x64 fix: 14.7.0
nuget magick.net-q16-hdri-x86 fix: 14.7.0
nuget magick.net-q16-openmp-arm64 fix: 14.7.0
nuget magick.net-q16-openmp-x64 fix: 14.7.0
nuget magick.net-q16-openmp-x86 fix: 14.7.0
nuget magick.net-q16-x64 fix: 14.7.0
nuget magick.net-q16-x86 fix: 14.7.0
nuget magick.net-q8-anycpu fix: 14.7.0
nuget magick.net-q8-arm64 fix: 14.7.0
nuget magick.net-q8-openmp-arm64 fix: 14.7.0
nuget magick.net-q8-openmp-x64 fix: 14.7.0
nuget magick.net-q8-x64 fix: 14.7.0
nuget magick.net-q8-x86 fix: 14.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 19 packages in nuget

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ImageMagick is a widely-used image processing library and command-line tool (CPE: cpe:2.3:a:imagemagick:imagemagick) that handles multiple image formats including XMP (Extensible Metadata Platform) metadata. The vulnerability resides in the XMP file parsing/conversion logic, specifically in CWE-835 (Infinite Loop), where improper control flow handling during XMP metadata processing causes the application to enter an unbounded loop. When ImageMagick processes a specially crafted XMP file through conversion commands, the parser fails to properly validate or terminate loop conditions, consuming CPU and memory resources indefinitely. This is a classic infinite loop vulnerability where the exit condition is never met due to malformed or adversarial XMP structure.

Know when Imagemagick gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu MEDIUM
SUSE HIGH
Red Hat 5.3 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
PoC Detected
Oct 08, 2025 - 17:06 vuln.today
Public exploit code
CVE Published
Jul 14, 2025 - 20:15 nvd
HIGH 7.5

DescriptionGitHub Advisory

ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-0, infinite lines occur when writing during a specific XMP file conversion command. Version 7.1.2-0 fixes the issue.

Executive ViewAI

Why It Matters

CVE-2025-53015 affects ImageMagick, a widely-used image processing tool, and could allow attackers to cause service disruptions through malicious XMP file conversions. Organizations using ImageMagick for image processing workflows face operational risk until a patch is deployed, particularly if the software processes untrusted user-supplied images.

Business Impact: High
Compensating Controls

Disable XMP metadata processing in ImageMagick configuration if not required for operations; implement strict input validation and file type enforcement to reject XMP-embedded files from untrusted sources; isolate ImageMagick processing services on restricted network segments; monitor process resource consumption for signs of infinite loop conditions; consider temporary use of alternative image processing tools for external file handling until patch availability.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)GitHub Advisory

cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2016-3718 MEDIUM POC
5.5 May 05

The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct

CVE-2016-3715 MEDIUM POC
5.5 May 05

The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi

CVE-2017-15277 MEDIUM POC
6.5 Oct 12

ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc

CVE-2016-5841 CRITICAL POC
9.8 Dec 13

Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv

CVE-2016-3717 MEDIUM POC
5.5 May 05

The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi

CVE-2016-5118 CRITICAL
9.8 Jun 10

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit

CVE-2016-5689 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2016-5690 CRITICAL POC
9.8 Dec 13

The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to

CVE-2016-5691 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2017-14138 CRITICAL POC
9.8 Sep 04

ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer

Vendor StatusVendor

Ubuntu

Priority: Medium
imagemagick
Release Status Version
bionic not-affected code not present
focal not-affected code not present
jammy not-affected code not present
noble not-affected code not present
plucky not-affected code not present
questing not-affected 8:7.1.2.3+dfsg1-1
trusty not-affected code not present
upstream released 7.1.2-0
xenial not-affected code not present

Debian

Bug #1109339
imagemagick
Release Status Fixed Version Urgency
bullseye not-affected - -
bullseye (security) fixed 8:6.9.11.60+dfsg-1.3+deb11u10 -
bookworm not-affected - -
bookworm (security) fixed 8:6.9.11.60+dfsg-1.6+deb12u7 -
trixie fixed 8:7.1.1.43+dfsg1-1+deb13u1 -
trixie (security) fixed 8:7.1.1.43+dfsg1-1+deb13u6 -
forky fixed 8:7.1.2.15+dfsg1-2 -
sid fixed 8:7.1.2.16+dfsg1-1 -
(unstable) fixed 8:7.1.1.47+dfsg1-2 -

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP6 SUSE Linux Enterprise High Performance Computing 15 SP6 SUSE Linux Enterprise Server 15 SP6 SUSE Linux Enterprise Server for SAP Applications 15 SP6 Fixed
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP6 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Development Tools 15 SP6 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy