Skip to main content

ImageMagick CVE-2026-140366

| EUVDEUVD-2026-140187 LOW
Out-of-bounds Write (CWE-787)
2026-12-01 VulnCheck GHSA-3953-vpgh-6w8f
2.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted image to Magick++ app
  2. Exploit
    Application calls readImages or montage API
  3. Execution
    Single zero-byte write past heap buffer
  4. Impact
    Heap corruption and application crash

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 the ability to call the ImageMagick C++ (Magick++) readImages or montage API functions with attacker-influenced input - the flaw is in these specific C++ API entry points, not the general command-line interface. Limiting factors per the CVSS 4.0 vector: the attack vector is local (AV:L), attack complexity is high (AC:H), a specific attack requirement must be met (AT:P), and passive user interaction is needed (UI:P), such as an application processing an attacker-supplied file. The practical precondition is a deployed application that links Magick++ and routes untrusted data into readImages/montage; standalone CLI/delegate usage is not the described surface. Affected versions are ImageMagick before 6.9.13-61 (6.x) and 7.0.0 before 7.1.2-36 (7.x); upgrading to the fixed releases is the remedy.

Impact

This is a low-priority issue despite affecting ubiquitous software. The vendor-supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P) scores only 2.0, with impact limited to availability (VA:L) and no confidentiality or integrity impact - consistent with the description, which states the flaw writes a single zero byte past a heap buffer, corrupting memory and 'potentially crashing the application.' All decision signals align toward low urgency: CISA SSVC shows Exploitation=none, Automatable=no, Technical Impact=partial; the vuln.today Decision label is 'monitor' (not act_now or emergency); and there is no KEV listing and no EPSS score provided. No public exploit or PoC reference is present in the input. The one caveat is the local attack vector framing: exploitation requires an attacker to be 'able to call these C++ API functions' (Magick++ readImages/montage), meaning the realistic attack surface is an application that links Magick++ and feeds attacker-controlled input to these specific functions - this is a narrower surface than ImageMagick's command-line or delegate paths. No signals conflict; the data consistently points to a low-severity memory-safety bug rather than a widely exploitable vulnerability.

Exploit ScenarioDerived

An application that links the ImageMagick C++ (Magick++) library and passes attacker-influenced image data to the readImages or montage API is made to process crafted input, triggering a single out-of-bounds zero-byte write past a heap buffer. The most likely observable outcome is heap corruption leading to a crash (denial of service) of that application; no public exploit code is identified. Exploitation requires local access to invoke the vulnerable C++ API (AV:L) with passive user interaction (UI:P) and has high attack complexity (AC:H) plus an additional attack requirement (AT:P).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available

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

Alert me

AnalysisAIv1 – Dec 02, 2026

A single-byte heap out-of-bounds write exists in ImageMagick's Magick++ readImages and montage C++ API entry points, affecting 6.x before 6.9.13-61 and 7.0.0 before 7.1.2-36. Exploitation requires an application that links Magick++ to call readImages or montage with attacker-influenced input; the CVSS 4.0 vector indicates local attack vector, high complexity, a specific attack requirement, and passive user interaction, with availability impact only. This is a low-priority memory-corruption issue: no public exploit was identified at time of analysis, SSVC reports exploitation none and automatable no, and the vendor has released fixed versions.

RemediationAI

Vendor-released patches are available: upgrade ImageMagick 6.x to 6.9.13-61 or later, and ImageMagick 7.x to 7.1.2-36 or later, per the GitHub advisory GHSA-j4x4-q2rm-qxjf. Patch status is listed as available from the vendor. For deployments that cannot upgrade immediately, the practical exposure reduction is to avoid passing untrusted input into the Magick++ readImages and montage API entry points; this limits functionality that relies on those APIs and is not a substitute for installing the fixed release. No other vendor-documented workaround is provided in the available sources. Advisory URLs: https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-j4x4-q2rm-qxjf and https://nvd.nist.gov/vuln/detail/CVE-2026-140366.

Affected VersionsENISA

ImageMagick 0 <6.9.13-61
ImageMagick 7.0.0 <7.1.2-36

Affected Packages

euvd imagemagick fix: 6.9.13-61, 7.1.2-36

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 is CWE-787 (out-of-bounds write) in ImageMagick's C++ Magick++ API, specifically the readImages and montage functions, where a heap buffer is written one zero byte past its allocated end. That single-byte corruption can damage heap metadata or adjacent objects and potentially crash the application, but the available sources do not describe the precise internal trigger beyond the affected API entry points. The affected surface is a deployed application that links Magick++ and routes untrusted data into readImages or montage; standalone command-line or delegate usage is not the described surface. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L) and the independent assessment (CVSS 3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L) both characterize this as a local, high-complexity availability issue rather than a remotely reachable confidentiality or integrity compromise.

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

Vendor (VulnCheck) PRIMARY 2.0 LOW
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 2.5 LOW

Exploitation requires local invocation of the Magick++ API on attacker-supplied input (AV:L, UI:R) under non-trivial conditions (AC:H); a single-byte overwrite yields only crash potential, so A:L with no C/I impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 16:02 EUVD
CVE Published
Dec 01, 2026 - 14:29 cve.org
LOW 2.0

DescriptionCVE.org

ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a heap buffer overflow in the C++ readImages and montage API that writes a single zero byte past the end of a heap buffer. Attackers able to call these C++ API functions can trigger the out-of-bounds write, corrupting heap memory and potentially crashing the application.

Threat Intelligence Overview

Prevalence
High
ImageMagick is a widely deployed image-processing library across server and web stacks
Social Media
1
Sightings
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 LOW
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

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.

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

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