Skip to main content

ImageMagick EUVDEUVD-2026-22108

| CVE-2026-33905 MEDIUM
Out-of-bounds Read (CWE-125)
2026-04-13 GitHub_M GHSA-pcvx-ph33-r5vv
5.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Obtain access to ImageMagick processing pipeline
  2. Delivery
    Craft image or arguments setting malicious sample:offset define
  3. Exploit
    Trigger -sample resizing operation
  4. Execution
    SampleImage() computes out-of-bounds pixel buffer index
  5. Persist
    Out-of-bounds read in MagickCore/resize.c
  6. Impact
    Process crash causing denial of service

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 specifically requires that the ImageMagick -sample operation is invoked with the sample:offset define set to a value that produces an out-of-bounds column index in SampleImage(). This is a non-default configuration - sample:offset is not set in standard ImageMagick invocations. The CVSS vector AV:L/UI:R confirms local access and user interaction are required: either a local user triggers the processing of a crafted image, or a server-side pipeline both exposes the sample:offset define to attacker-controlled input and processes images on behalf of the attacker. Impact is strictly limited to availability (process crash); C:N and I:N in the CVSS vector confirm no confidentiality or integrity impact is expected. Exploitation is not automatable per SSVC, as the specific offset value and operation must be purposefully constructed.

Impact

The CVSS 3.1 score of 5.5 Medium with vector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H accurately reflects the constrained impact: local access with user interaction required, scope unchanged, and impact limited to availability (crash/DoS with no code execution or data leakage). EPSS at 0.01% (2nd percentile) signals near-zero observed exploitation probability. SSVC confirms exploitation:none, automatable:no, and only partial technical impact. These signals are internally consistent and paint a coherent picture of a low-priority patching item. The metadata tags include 'Information Disclosure,' which conflicts with the CVSS C:N rating; given that the OOB read in this context produces a crash (segfault) rather than data exfiltration, C:N from the CVSS vector is treated as authoritative and the tag as a conservative downstream classification. Red Hat and SUSE tracking indicates this will be addressed in distro updates. This is not a real-time priority unless ImageMagick pipelines expose the sample:offset define to untrusted external input.

Exploit ScenarioDerived

An attacker with the ability to supply a crafted image file or manipulate ImageMagick processing arguments in a batch pipeline sets the sample:offset define to a specific boundary value, then triggers the -sample resizing operation. The SampleImage() function computes a pixel buffer index that exceeds the allocated scanline buffer, causing an out-of-bounds memory read and a process crash. In a web application that processes user-uploaded images with ImageMagick and exposes sample:offset in its processing chain, repeated submission of such a crafted image could sustain denial of service against the image processing worker. No public exploit code exists at the time of analysis.

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

Out-of-bounds read in ImageMagick's -sample resizing operation allows local attackers to crash the process when the sample:offset define is set to a specific value, causing denial of service in versions below 7.1.2-19 and 6.9.13-44. The flaw originates in SampleImage() within MagickCore/resize.c, where a precomputed offset array was used to index into a pixel scanline buffer without adequate bounds enforcement. No public exploit exists and CISA KEV does not list active exploitation; EPSS at 0.01% (2nd percentile) and SSVC exploitation:none confirm this is a low-urgency issue despite its presence in a widely-distributed tool.

RemediationAI

Upgrade ImageMagick to version 7.1.2-19 or later (https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19) or to 6.9.13-44 or later on the 6.x legacy branch. For .NET applications using Magick.NET, upgrade to 14.12.0 or later (https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0). Ubuntu users should apply the update referenced in USN-8558-1 (https://ubuntu.com/security/notices/USN-8558-1). The upstream fix commit is available at https://github.com/ImageMagick/ImageMagick/commit/cca607366fb38c2dde019a9088b8415ffba3a835. Where patching is not immediately possible, remove the sample:offset define from any ImageMagick processing pipelines that accept untrusted input - this eliminates the code path that triggers the flaw, though it may change output sampling behavior for applications relying on that define.

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 SampleImage() function in MagickCore/resize.c implements the -sample image scaling operation (CWE-125: Out-of-bounds Read). In the vulnerable code path, the function pre-allocated a global array x_offset[] of column offsets incorporating sample:offset, then fetched an entire pixel scanline via GetCacheViewVirtualPixels() starting at column 0, and subsequently indexed into that buffer using x_offset[x] * GetPixelChannels(image) + i. When sample:offset shifted the precomputed offset outside the scanline's valid column range, this index exceeded the bounds of the fetched pixel buffer, producing an out-of-bounds memory read and resulting in a process crash. The fix restructured pixel fetching to retrieve individual pixels at precise (x_offset, y_offset) coordinates per iteration rather than using the precomputed global array, eliminating the dangling index. Affected CPE is cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* for all versions prior to the fix, and Magick.NET NuGet packages (Q16-AnyCPU, Q16-HDRI-AnyCPU, Q16-HDRI-OpenMP-arm64, Q16-HDRI-arm64) in versions below 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

Local vector confirmed by file-based attack requiring ImageMagick invocation; no privileges needed for CLI tool; UI:R as processing must be triggered; impact is crash-only (A:H, C:N, I:N).

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.0 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 - 21:02 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, the -sample operation has an out of bounds read when an specific offset is set through the sample:offset define that could lead to an out of bounds read. 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 processor bundled across major Linux distributions
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

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.

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
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected

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