Skip to main content

ImageMagick CVE-2026-34238

| EUVDEUVD-2026-22112 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-04-13 https://github.com/ImageMagick/ImageMagick GHSA-26qp-ffjh-2x4v
5.1
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted image with extreme dimensions
  2. Delivery
    Invoke despeckle filter on 32-bit ImageMagick process
  3. Exploit
    Integer overflow wraps buffer size calculation
  4. Execution
    Heap allocates undersized buffer
  5. Persist
    DespeckleImage writes beyond allocation boundary
  6. Impact
    Process crashes (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Exploitation strictly requires a 32-bit build of ImageMagick or a Magick.NET package running in a 32-bit (x86) process - this is the enabling architectural condition, not a configuration choice. The DespeckleImage() function must be invoked on the crafted image; applications that do not use the despeckle filter are not reachable. The attacker must be able to supply an image with dimensions large enough to cause (columns+2)*(rows+2) to overflow a 32-bit size_t. CVSS PR:N indicates no authentication is required at the ImageMagick library level, but calling applications may impose their own upload or access controls. Exploitation is limited by: 32-bit-only constraint (modern 64-bit deployments are immune), high attack complexity (precise dimension crafting required), and availability-only impact (no code execution demonstrated).

Impact

The CVSS 5.1 score with AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H correctly reflects a local, high-complexity, availability-only impact. All available signals converge on low real-world priority: EPSS 0.01% (2nd percentile) indicates near-zero observed exploitation probability; SSVC rates exploitation as none, automatable as no, and technical impact as partial. The 32-bit build constraint is the single most significant risk limiter - virtually all modern production server deployments of ImageMagick run as 64-bit binaries, eliminating the vulnerability entirely. The worst-case impact is a process crash (denial of service), with no confidentiality or integrity impact demonstrated or implied. No conflicting signals are present; all sources are consistent. This is not a prioritization candidate except for organizations with confirmed 32-bit ImageMagick or Magick.NET deployments.

Exploit ScenarioDerived

An attacker crafts an image with extreme column or row dimensions and submits it to a service that applies ImageMagick's despeckle filter on a 32-bit deployment. The dimension product overflows during buffer size calculation, causing an undersized heap allocation. When DespeckleImage writes to the buffer, it overwrites adjacent heap metadata or data, crashing the process and causing a denial of service. Reliable exploitation requires precise image dimensioning to trigger the overflow, consistent with CVSS AC:H and SSVC automatable: no.

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

Integer overflow in ImageMagick's despeckle operation corrupts the heap on 32-bit builds, enabling an out-of-bounds write that crashes the process. Affected are ImageMagick before 7.1.2-19 and 6.9.13-44, and all Magick.NET NuGet packages before 14.12.0. No public exploit code exists and CISA has not listed this in KEV; EPSS at 0.01% (2nd percentile) and SSVC exploitation status of none confirm this as a low-urgency, patch-when-convenient finding for most organizations.

RemediationAI

Upgrade to ImageMagick 7.1.2-19 or later (release: https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19) or 6.9.13-44 or later for the legacy 6.x branch. For .NET consumers, update all affected Magick.NET NuGet packages to version 14.12.0 or later (release: https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0). The upstream fix is commit bcd8519c70ecd9ebbc180920f2cf97b267d1f440. Where immediate patching is not feasible, migrating the ImageMagick service from a 32-bit to a 64-bit binary fully eliminates the vulnerability without a code change, since size_t overflow cannot occur on 64-bit platforms - this is the most effective compensating control and has no functional side effects. Alternatively, if the despeckle filter is not required, disable or gate its invocation in application code to prevent the vulnerable code path from being reached; this reduces functionality but avoids the overflow entirely.

Affected VersionsENISA

ImageMagick < 7.1.2-19
ImageMagick < 6.9.13-44

Affected Packages

nuget magick.net-q16-anycpu fix: 14.12.0
nuget magick.net-q16-hdri-anycpu fix: 14.12.0
nuget magick.net-q16-hdri-x86 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-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 7 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

The root cause is CWE-190 (Integer Overflow or Wraparound) in the DespeckleImage() function within MagickCore/effect.c. On 32-bit platforms, size_t is a 32-bit type, so the expression (image->columns+2)*(image->rows+2) can silently wrap around when image dimensions are sufficiently large, producing a value far smaller than the actual required allocation size. The resulting undersized heap buffer is then written beyond its boundary, as confirmed by the AddressSanitizer trace showing a WRITE of size 8 past the allocation. The upstream fix (commit bcd8519c70ecd9ebbc180920f2cf97b267d1f440) adds explicit pre-multiplication bounds checking against MAGICK_SIZE_MAX before computing length and removes the lossy (size_t) cast. Affected packages span multiple Magick.NET NuGet variants - Q8/Q16 in AnyCPU and x86 configurations - meaning AnyCPU packages are vulnerable when the runtime is 32-bit (x86 process). 64-bit builds are structurally immune because size_t is 64 bits and the overflow cannot occur at any realistic image dimension.

Know when the next one hits your stack

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

32-bit build prerequisite justifies AC:H; local image processing path justifies AV:L; no auth at library level; availability-only crash impact with no C or I effect.

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

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Apr 13, 2026 - 19:30 nvd
Patch available
CVE Published
Apr 13, 2026 - 19:10 nvd
MEDIUM 5.1

DescriptionGitHub Advisory

An integer overflow in the despeckle operation causes a heap buffer overflow on 32-bit builds that will result in an out of bounds write.

==1551685==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xea2fb818 at pc 0x56cbc42a bp 0xffc4ce48 sp 0xffc4ce38
WRITE of size 8 at 0xea2fb818 thread T0

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Prevalence
High
widely used image processing library across web and server stacks
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

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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