Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain ability to submit -fx expression
-
ExploitCraft expression hitting faulty image index
-
ExecutionTrigger out-of-bounds heap read in GetIntensity
-
ImpactReceive leaked adjacent heap memory
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the attacker can get a crafted -fx expression processed by ImageMagick - specifically an fx operation that reaches the GetIntensity code path with a controllable or out-of-range image index. The primary limiting factors are: the vector is local (AV:L) and requires low privileges (PR:L per the provided CVSS 4.0 vector), i.e. the ability to invoke ImageMagick with attacker-influenced -fx input rather than purely remote unauthenticated access; impact is confined to a limited out-of-bounds heap read (minor memory disclosure) and possible crash, with no code execution or integrity impact. Risk rises substantially only in deployments where a service passes untrusted user input into -fx expressions; against default command-line use where -fx is operator-controlled, the practical attack surface is small. Affected versions are ImageMagick 7.1.0-21 through before 7.1.2-32. |
| Impact | This is a genuinely low-to-moderate priority issue, not a high-severity emergency. The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L) yields 4.8 (Medium) and is internally consistent with the description: exploitation requires local access and at least low privileges (PR:L) to get a crafted -fx expression processed, and the impact is bounded - limited confidentiality (VC:L, small out-of-bounds heap read) and limited availability (VA:L, likely a crash), with no integrity impact. No EPSS score was provided, the CVE is not on CISA KEV, and no public POC is referenced, so there is no signal of active or imminent widespread exploitation - all three exploitation-pressure signals are either absent or negative. The strongest confirmed artifact is the upstream fix commit (a one-line index correction from pfx->ImgNum to ImgNum in GetIntensity in MagickCore/fx.c), which corroborates the CWE-125 out-of-bounds read root cause. One nuance to verify: ImageMagick is frequently used as a server-side processing engine where -fx expressions could in some deployments be influenced by untrusted input, which would effectively raise the attack vector toward network/remote - the AV:L rating assumes the -fx expression is operator-controlled, so deployments that expose -fx to user input should treat this as higher risk than the base score implies. |
| Exploit ScenarioDerived | An attacker who can supply or influence a -fx expression evaluated by a vulnerable ImageMagick (7.1.0-21 up to 7.1.2-32) - for example a local user running a conversion, or a web service that passes untrusted parameters into an fx operation - crafts an expression that triggers the faulty image-index access in GetIntensity. The out-of-bounds heap read returns limited adjacent memory contents, potentially leaking small fragments of process memory, or crashes the process. No public exploit code is identified at time of analysis, so exploitation currently requires independent development against the known fix commit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 12, 2026
Heap buffer over-read in ImageMagick's -fx expression processor affects versions 7.1.0-21 through 7.1.2-31, allowing a local, low-privileged attacker who can get a crafted -fx expression evaluated to read past the end of an allocated heap buffer and disclose limited memory contents or trigger a crash. The issue is rated CVSS 4.0 4.8 (AV:L/AC:L/PR:L/UI:N, confined to low confidentiality and availability impact), and there is no public exploit identified at time of analysis. Practical risk is highest where a service passes untrusted input into ImageMagick -fx expressions and is comparatively small for typical operator-driven command-line use, matching the independent assessment that this is a low-to-moderate priority issue rather than a high-severity emergency.
RemediationAI
Upgrade to ImageMagick 7.1.2-32 or later; the vendor-released fix is commit 0e82a4d0b294581186ed7b3e1dce59c858a73dba and the advisory is GHSA-cvgp-q487-j22w. If an immediate upgrade is not possible, prevent untrusted or attacker-influenced input from reaching the -fx option: validate or reject -fx expressions at the application boundary and avoid passing user-supplied strings directly as -fx arguments. Run ImageMagick invocations under a low-privilege account and, where practical, in a sandbox so that a heap over-read cannot expose anything beyond the process's own accessible memory. Wrapping or disabling -fx for untrusted callers may break legitimate image-processing workflows, so scope that control to services that accept external expression input; because this is a read-only over-read with no demonstrated code-execution path, it can reasonably be prioritized below memory-corruption classes per the independent assessment, while still being patched.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw resides in MagickCore/fx.c, the implementation of ImageMagick's -fx option, which evaluates a user-supplied per-pixel expression across image channels. In the GetIntensity helper, one lookup uses the ImgNum parameter while the interpolation view is read from pfx->Imgs[pfx->ImgNum].View; when those two indices differ, the InterpolatePixelInfo call is given a view that is inconsistent with the image being processed, so pixel data can be read beyond the bounds of the allocated buffer. This is a classic CWE-125 out-of-bounds read: the root cause is incorrect image-index selection rather than a write primitive, use-after-free, or missing bounds check on a length. The upstream fix commit 0e82a4d0b294581186ed7b3e1dce59c858a73dba changes the expression to pfx->Imgs[ImgNum].View, keeping the interpolation view aligned with the ImgNum being processed. CPE data identifies the affected product line as imagemagick:imagemagick, and the affected interval runs from 7.1.0-21 up to but not including 7.1.2-32.
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
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Requires locally supplying a crafted -fx expression (AV:L, PR:L); yields only a limited heap over-read (C:L) and possible crash (A:L) with no integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
ImageMagick 7.1.0-21 before 7.1.2-32 contains a heap buffer over-read in its handling of the -fx option, where a certain -fx operation reads beyond the bounds of an allocated heap buffer in specific situations. Attackers who can get a crafted -fx expression processed can read out-of-bounds heap memory, potentially disclosing limited memory contents.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Imagemagick
View allThe (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.
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
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
ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc
Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv
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
The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit
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
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
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
ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer
Heap buffer overflow in ImageMagick's XBM image decoder (ReadXBMImage) lets remote attackers write attacker-controlled d
EUVD-2026-97583
GHSA-8hfc-qgqf-ghwj
NVD
CVE.org
EPSS
Exploit-DB