Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted 12-bit image
-
ExploitSystem invokes vulnerable encoder export path
-
ExecutionOut-of-bounds heap write triggered
-
ImpactProcess crash or memory corruption
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation 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 a crafted image be processed AND encoded through an ImageMagick code path that exports pixels for 12-bit images before writing the image data - i.e., the victim workflow must actually perform a conversion/encode into (or through) a 12-bit-capable output, not merely open or display the input. Limiting factors per the CVSS 4.0 vector: the vector is local (AV:L), complexity is High (AC:H) with a specific attack requirement present (AT:P), and passive user/processing interaction is required (UI:P), so it is not a drive-by remote-unauthenticated trigger against arbitrary ImageMagick usage. Affected builds are ImageMagick < 6.9.13-61 and 7.0.0 through < 7.1.2-36; systems on the fixed releases are not exposed. |
| Impact | This is a genuinely low-priority issue despite the attention-grabbing "heap buffer overflow / memory corruption" framing, and the signals are consistent rather than conflicting. The CVSS 4.0 base score is 2.0 (Low) with a vector of AV:L/AC:H/AT:P/PR:N/UI:P and only Low vulnerable-system integrity and availability impact (VI:L/VA:L) and no confidentiality impact (VC:N) - meaning local attack vector, high complexity, a specific attack requirement (AT:P), and required user/processing interaction (UI:P). The vuln.today decision label is 'monitor,' not act_now or emergency. There is no CISA KEV listing and no EPSS score supplied, so there is no evidence of active or probabilistic exploitation; exploitation status is 'no public exploit identified at time of analysis' (the VulnCheck and GHSA entries are vendor/research advisories, not verified working exploit code). The one factor that raises baseline exposure is deployment footprint: ImageMagick is extremely widely embedded, so even a low-severity encoder bug touches many systems. Net: real severity is low and the appropriate posture is patch-on-cycle monitoring, not emergency response. No key signals contradict each other here; the main missing datum is EPSS, which is absent (absence is not an error). |
| Exploit ScenarioDerived | An attacker crafts a malformed image and gets a victim system to convert or re-encode it into an output path that exports pixels for 12-bit images, which triggers an out-of-bounds heap write. In practice this most likely causes a crash (denial of the conversion process) or localized memory corruption rather than reliable code execution, consistent with the Low integrity/availability impact. No public exploit has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Heap buffer overflow in ImageMagick's 12-bit image encoding path can crash the process or corrupt memory when a crafted image is processed and then encoded. Affected releases are ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36. Exploitation is constrained: the assessed vector is local (AV:L), high complexity (AC:H), requires a specific attack precondition (AT:P) and user/processing interaction (UI:P), with only low integrity and availability impact; no public exploit was identified at time of analysis, and vendor patches are available in 6.9.13-61 and 7.1.2-36.
RemediationAI
Upgrade ImageMagick to 6.9.13-61 or 7.1.2-36, matching the deployed branch; these are the vendor-listed fixed versions. The GHSA advisory (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-cf7p-m88c-h9jh) and VulnCheck advisory (https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-36-heap-buffer-overflow-when-encoding-12-bit-images) document the issue. If upgrading immediately is not possible, reduce exposure by avoiding conversion or encoding of untrusted images into 12-bit-capable output paths until the fix is applied, since the advisory ties exploitation to that encode step; this is a functionality-limiting compensating measure, not a complete fix, and no other vendor workaround is listed in the available references.
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
CVE-2026-140368 is a CWE-787 out-of-bounds heap write in ImageMagick encoders that export pixel data for 12-bit images before encoding the image data. The vulnerable component is the ImageMagick image-processing library and CLI, tracked by CPE cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*; the affected ranges are 0 through <6.9.13-61 and 7.0.0 through <7.1.2-36. The advisory states the flaw is reached when a crafted image is processed and encoded through a path that performs the 12-bit pixel export; the exact allocation sizing or stride condition that causes the write past the heap buffer is not described in the supplied sources. This is not a general image-decoding bug: the assessed exploitation conditions require the conversion or encode step, not merely opening or displaying the input.
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:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Local because exploitation depends on the system encoding a crafted 12-bit image (AV:L); crafted-input plus specific encoder path justifies AC:H and UI:R; heap over-write yields only Low integrity and availability impact and no confidentiality loss.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap buffer overflow in encoders that export pixels for 12-bit images before encoding the image data. Attackers can supply a crafted image that, when processed and encoded, triggers an out-of-bounds heap write, causing crashes or memory corruption.
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.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
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
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi
ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer
EUVD-2026-140185
GHSA-4cgw-v5hg-6x29
NVD
CVE.org
Exploit-DB