Skip to main content

Magick.NET CVE-2026-47166

MEDIUM
Out-of-bounds Read (CWE-125)
2026-05-22 https://github.com/ImageMagick/ImageMagick GHSA-6gxq-f64p-5w6f
5.7
CVSS 3.1 · Vendor: https://github.com/ImageMagick/ImageMagick
View

Attack ChainAIDerived

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

  1. Access
    Gain high-privileged local system access
  2. Delivery
    Identify running distribute-cache service
  3. Exploit
    Craft malformed pixel cache protocol request
  4. Execution
    Send request to trigger heap over-read
  5. Impact
    Read adjacent heap memory or crash server process

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 the magick -distribute-cache service to be actively running on the target system - this is a non-default operational mode used for distributed image processing and must be explicitly started. The CVSS vector specifies PR:H (high privileges required), meaning the attacker must already hold elevated privileges on the system, and AC:H (high attack complexity), indicating that exploitation is not straightforward and may require precise timing or knowledge of heap layout. The vulnerability is limited to the distributed pixel cache server component and does not affect standard ImageMagick image processing operations. The AV:L (Local) designation implies the service is accessed locally, though the description's phrasing ('connect to a service') introduces ambiguity about whether network-exposed deployments could broaden the attack surface - defenders should verify whether their distribute-cache instance is network-accessible. Confidentiality is limited to heap memory readable by the server process; integrity is unaffected (I:N).

Impact

The CVSS base score of 5.7 (Medium) is supported by the vector CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H. The high-complexity (AC:H) and high-privilege (PR:H) requirements substantially reduce the exploitability surface compared to a typical network-facing RCE. However, a notable tension exists in the data: the description states 'an attacker who can connect to a magick -distribute-cache service', implying network reachability, while the CVSS vector assigns AV:L (Local) - this discrepancy should be verified against the vendor advisory at GHSA-6gxq-f64p-5w6f. If the service is network-exposed in certain deployments, the effective attack vector could be broader than AV:L implies. Confidentiality impact is rated High (C:H), meaning successful exploitation could leak sensitive heap memory contents. Availability impact is also High (A:H), enabling denial-of-service of the cache server. No EPSS data was provided; given no KEV listing and no public POC, real-world exploitation risk is currently assessed as low but non-trivial for environments actively using the distributed cache feature.

Exploit ScenarioDerived

An attacker who has already obtained high-privileged local access to a system running an active magick -distribute-cache server crafts a malformed pixel cache protocol request designed to cause the server to read beyond a heap buffer boundary. This results either in disclosure of adjacent heap memory contents (potentially including sensitive image data or process memory) or a server crash, causing denial of service for all dependent image processing jobs. No public proof-of-concept code has been identified at 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 – May 23, 2026

Heap buffer over-read in ImageMagick's distributed pixel cache server affects all Magick.NET NuGet package variants prior to version 14.12.0. An attacker with the ability to connect to a running magick -distribute-cache service can trigger an out-of-bounds read (CWE-125) in the server process, resulting in high-severity confidentiality impact (memory disclosure) and availability impact (potential crash). No public exploit code or active exploitation (CISA KEV) has been identified at time of analysis, and the CVSS score of 5.7 reflects meaningful mitigating constraints: high attack complexity and high privileges required per the vector.

RemediationAI

The vendor-released patch is Magick.NET version 14.12.0, which resolves the heap over-read in all affected Q16 package variants. Operators should upgrade all Magick.NET NuGet dependencies to >= 14.12.0 via the NuGet package manager. Advisory details are at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6gxq-f64p-5w6f. As an immediate compensating control for environments that cannot patch, disable or avoid starting the magick -distribute-cache service entirely - the vulnerability is only exploitable when this service is running and accessible. If the distributed cache feature is required, restrict network or local socket access to the service using host-based firewall rules or OS-level access controls (e.g., bind only to loopback, restrict with iptables/nftables), limiting connection attempts to known trusted processes only. Note that disabling the distribute-cache service will remove distributed processing capability and may degrade performance in high-throughput imaging pipelines.

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

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 17 packages in nuget

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ImageMagick's distributed pixel cache (-distribute-cache) is a network-accessible service that offloads pixel data storage to a remote or local server process, enabling distributed image processing workloads. The affected components are the Magick.NET NuGet wrappers (Q16 depth variants: AnyCPU, x64, x86, arm64, HDRI, OpenMP, and combinations thereof) which embed the underlying ImageMagick native libraries. CWE-125 (Out-of-bounds Read) indicates that a crafted request to the cache service causes the server to read beyond allocated heap memory, potentially exposing heap contents or causing a process crash. The CPE identifiers (e.g., pkg:nuget/magick.net-q16-anycpu, pkg:nuget/magick.net-q16-hdri-x64) confirm the vulnerability spans both standard and HDRI (High Dynamic Range Image) build configurations across multiple CPU architectures.

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

Vendor (https://github.com/ImageMagick/ImageMagick) PRIMARY 5.7 MEDIUM
AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H
SUSE MEDIUM
Red Hat 6.0 MEDIUM

Primary rating from Vendor (https://github.com/ImageMagick/ImageMagick).

CVSS VectorVendor: https://github.com/ImageMagick/ImageMagick

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

DescriptionCVE.org

An attacker who can connect to a magick -distribute-cache service can cause a heap buffer over-read in the server process.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS 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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

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.

Affected Products (CPE)CVE.org

pkg:nuget/magick.net-q16-anycpu
pkg:nuget/magick.net-q16-hdri-anycpu
pkg:nuget/magick.net-q16-hdri-openmp-arm64
pkg:nuget/magick.net-q16-hdri-arm64
pkg:nuget/magick.net-q16-hdri-x64
pkg:nuget/magick.net-q16-hdri-x86
pkg:nuget/magick.net-q16-openmp-arm64
pkg:nuget/magick.net-q16-openmp-x64
pkg:nuget/magick.net-q16-arm64
pkg:nuget/magick.net-q16-x64
pkg:nuget/magick.net-q16-x86
pkg:nuget/magick.net-q8-anycpu
pkg:nuget/magick.net-q8-openmp-arm64
pkg:nuget/magick.net-q8-openmp-x64
pkg:nuget/magick.net-q8-arm64
pkg:nuget/magick.net-q8-x64
pkg:nuget/magick.net-q8-x86

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Not-Affected

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