Skip to main content

ImageMagick CVE-2026-33902

| EUVDEUVD-2026-22106 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-04-13 GitHub_M GHSA-f4qm-vj5j-9xpw
5.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft image with deeply nested FX expression
  2. Delivery
    Deliver crafted image to user or processing pipeline
  3. Exploit
    User or service invokes ImageMagick FX parser
  4. Execution
    TranslateExpression recurses without depth limit
  5. Persist
    Call stack exhausted
  6. Impact
    ImageMagick process crashes

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires that a crafted image or input invoking the FX expression parser is processed by an affected ImageMagick version. The FX parser is engaged when the -fx operator is used or when ImageMagick internally evaluates FX expressions during processing of certain image types. The CVSS vector AV:L/UI:R indicates the file must be processed locally and a user or automated process must trigger the operation - an attacker cannot directly invoke the parser over a network without a mediated processing pipeline. No authentication credentials are required (PR:N), only the ability to deliver a crafted file to the target. Exploitation is strictly limited to availability impact (process crash); no code execution, memory disclosure, or data modification is possible via this path. Standard image processing pipelines that do not evaluate FX expressions are not exposed through this specific parser path, though most general-purpose ImageMagick usage can invoke FX evaluation.

Impact

The CVSS 3.1 vector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H scores 5.5 (Medium), reflecting a local file-processing attack requiring user interaction with no confidentiality or integrity impact. EPSS at 0.01% (2nd percentile) places this in the bottom tier of exploitation likelihood. SSVC confirms: Exploitation=none, Automatable=no, Technical Impact=partial. All three signals are consistent and mutually reinforcing: this is a DoS-only, non-automated, low-exploitation-probability vulnerability. The primary real-world risk elevation comes from deployments where ImageMagick processes untrusted user-submitted images in automated pipelines - in those contexts, the AV:L designation understates network reachability since the crafted file arrives over the network before being processed locally. Defenders in such environments should treat this as a higher practical priority than CVSS alone indicates. For workstations and environments with controlled image sources, patching during a normal cycle is appropriate.

Exploit ScenarioDerived

An attacker crafts an image file embedding a deeply nested FX expression - for example, hundreds of levels of nested function calls within the expression string - and submits it to a web application that automatically processes uploaded images with ImageMagick. When the ImageMagick worker invokes the FX parser on the crafted file, TranslateExpression recurses without a depth limit until the call stack is exhausted, crashing the process and causing a denial of service. No public exploit code has been identified at the time of analysis, but the exploit primitive is conceptually accessible to anyone familiar with ImageMagick's FX expression syntax.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – Jul 24, 2026

Stack overflow via uncontrolled recursion in ImageMagick's FX expression parser causes process crash when evaluating deeply nested expressions, affecting all versions prior to 6.9.13-44 and 7.1.2-19. The impact is limited to availability - process termination - with no confidentiality or integrity exposure. With EPSS at 0.01% (2nd percentile), SSVC exploitation status confirmed as 'none', and no public exploit code identified, this is a low-urgency finding for most organizations, though web applications and automated pipelines processing untrusted image content carry elevated practical exposure.

RemediationAI

Upgrade ImageMagick to version 7.1.2-19 (https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19) or 6.9.13-44, which introduce the recursion depth guard in the FX expression parser. For .NET applications, upgrade Magick.NET to 14.12.0 or later (https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0). Red Hat and SUSE users should monitor their respective security channels for distribution-packaged updates. Where immediate patching is not feasible and ImageMagick processes untrusted inputs, use ImageMagick's policy.xml to restrict resource limits (memory, map, disk, time) and disable the -fx operator if not operationally required - note this will break FX-expression-dependent workflows. Sandboxing the ImageMagick process (e.g., via seccomp, AppArmor, or container isolation) can contain crash impact to the processing worker rather than the parent application.

Affected VersionsENISA

ImageMagick < 6.9.13-44
ImageMagick < 7.1.2-19

Affected Packages

nuget magick.net-q16-anycpu fix: 14.12.0
nuget magick.net-q16-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-anycpu fix: 14.12.0
nuget magick.net-q16-hdri-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-x64 fix: 14.12.0
nuget magick.net-q16-hdri-x86 fix: 14.12.0
nuget magick.net-q16-openmp-arm64 fix: 14.12.0
nuget magick.net-q16-openmp-x64 fix: 14.12.0
nuget magick.net-q16-x64 fix: 14.12.0
nuget magick.net-q16-x86 fix: 14.12.0
nuget magick.net-q8-anycpu fix: 14.12.0
nuget magick.net-q8-arm64 fix: 14.12.0
nuget magick.net-q8-openmp-arm64 fix: 14.12.0
nuget magick.net-q8-openmp-x64 fix: 14.12.0
nuget magick.net-q8-x64 fix: 14.12.0
nuget magick.net-q8-x86 fix: 14.12.0
euvd imagemagick fix: 6.9.13-44, 7.1.2-19

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 18 packages in nuget, euvd

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

Technical ContextAI · show details

ImageMagick's FX expression language allows per-pixel mathematical operations during image manipulation. The vulnerable component is the recursive descent parser in MagickCore/fx.c, specifically the TranslateExpression function, which lacked any depth guard on recursion (CWE-674: Uncontrolled Recursion). The fix introduced in commit d3c0a37485 adds an early return when pfx->teDepth meets or exceeds MagickMaxRecursionDepth, throwing an OptionError rather than continuing into unbounded recursion. The affected CPE is cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* covering all prior versions. The .NET binding library Magick.NET, distributed via NuGet (packages Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU, Magick.NET-Q16-HDRI-OpenMP-arm64, Magick.NET-Q16-HDRI-arm64), inherits the vulnerability through its bundled ImageMagick dependency and is fixed in 14.12.0.

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 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

AV:L because ImageMagick is a file-processing tool, not a network service; UI:R because processing must be triggered; A:H for process crash; no C or I impact.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.5 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Apr 14, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 13, 2026 - 20:59 nvd
MEDIUM 5.5

DescriptionGitHub Advisory

ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, a stack overflow vulnerability in ImageMagick's FX expression parser allows an attacker to crash the process by providing a deeply nested expression. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
High
widely used open-source image processing library across Linux distributions, web stacks, and developer toolchains
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Development Tools 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed

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