Skip to main content

Magick.NET CVE-2026-46693

MEDIUM
Race Condition (CWE-362)
2026-05-22 https://github.com/ImageMagick/ImageMagick GHSA-4g75-9r48-jf92
4.1
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-privilege local access
  2. Delivery
    Connect to running distribute-cache service
  3. Exploit
    Repeatedly send timed connection requests
  4. Execution
    Win race condition timing window
  5. Persist
    Hijack server process file descriptor
  6. Impact
    Read sensitive data from hijacked descriptor

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

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

Exploitation Conditions

The magick -distribute-cache service must be explicitly running on the target system - this is a non-default feature of ImageMagick that requires deliberate configuration and invocation. The CVSS vector AV:L requires local system access, meaning the attacker must already have a foothold on the host. PR:H requires high privileges to interact with the service, further constraining the attacker population to already-elevated local accounts. AC:H reflects the race condition's timing dependency - exploitation is not deterministic and requires the attacker to win a narrow concurrency window, reducing reliability. Exploitation is further limited to Magick.NET versions below 14.12.0 across any of the ten affected NuGet package variants. Important discrepancy: the description says 'can connect to a magick -distribute-cache service,' which may imply a network-bound socket, but CVSS AV:L contradicts this - defenders should verify with the vendor whether the service binds to a network interface or a local socket, as this changes the network segmentation controls that apply.

Impact

The overall CVSS 3.1 score of 4.1 (Medium) reflects three compounding access barriers: AV:L (local access vector), AC:H (high attack complexity due to race condition timing), and PR:H (high privileges required). Despite the Confidentiality impact being rated High - meaning a successful attacker can read sensitive file descriptors - the combination of local-only access, race condition timing requirements, and high privilege prerequisites substantially limits the realistic attacker population. Notably, the CVE description states 'an attacker who can connect to a magick -distribute-cache service,' which implies potential network connectivity to the service; however, the CVSS AV:L vector indicates a local access requirement - this discrepancy should be verified with the vendor, as it affects whether the distribute-cache binds to a network socket versus a local IPC channel. No EPSS score was provided in the input data, so probabilistic exploitation likelihood cannot be assessed. No public exploit code exists and this CVE is not listed in the CISA KEV catalog, confirming no confirmed active exploitation at time of analysis. The non-default nature of the distribute-cache feature further suppresses real-world risk - most Magick.NET deployments do not enable distributed caching.

Exploit ScenarioDerived

An attacker with high local privileges on a system running the magick -distribute-cache service connects to the service endpoint and repeatedly sends connection requests timed to coincide with the server's file descriptor assignment window. When the race condition fires at the right moment, the attacker's connection gains access to a file descriptor belonging to the server process, allowing them to read data the server has open - potentially including image data, temporary files, or other sensitive resources held by the server. No public proof-of-concept code exists at time of analysis, and the AC:H rating reflects the inherent difficulty of reliably winning the race window.

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

File descriptor hijacking in ImageMagick's distributed pixel cache server (magick -distribute-cache) exposes sensitive data via a race condition exploitable by a privileged local attacker. Affected are all Magick.NET NuGet packages across Q16, Q16-HDRI, OpenMP, and ARM64 variants prior to version 14.12.0. Successful exploitation yields high-confidentiality impact - an attacker can read file descriptors belonging to the server process - though no public exploit code exists and this is not currently listed in the CISA KEV catalog.

RemediationAI

Upgrade all Magick.NET NuGet package variants to version 14.12.0 or later; this is the vendor-released patch confirmed by the GHSA advisory at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-4g75-9r48-jf92. If immediate upgrade is not feasible, the most effective compensating control is to disable or not expose the magick -distribute-cache service entirely - this feature is non-default and unnecessary for single-node image processing workloads; disabling it fully eliminates the attack surface with no functional impact for typical use cases. If the distributed cache is operationally required, restrict access to the service endpoint using host-based firewall rules or OS-level access controls to limit which accounts or processes can connect, thereby addressing the privilege and access vector preconditions. Note that network-level blocking alone is insufficient if the AV:L classification is accurate and the service is a local IPC endpoint - in that case, OS user/group permissions on the socket or pipe are the correct enforcement boundary.

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 subsystem (invoked via magick -distribute-cache) offloads pixel cache I/O to a separate server process, enabling distributed image processing across nodes. The vulnerability stems from CWE-362 (Concurrent Execution Using Shared Resource with Improper Synchronization), a classic race condition in which the server process does not atomically validate and assign file descriptors during connection handling. An attacker who establishes a connection to this service during a vulnerable timing window can manipulate the file descriptor table of the server process before synchronization completes. The affected packages are the .NET bindings (Magick.NET) that bundle the ImageMagick native libraries; all Q16 depth variants (standard, HDRI, OpenMP) and all CPU architectures (AnyCPU, x64, x86, arm64) are affected. CPE data confirms the scope spans: 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, and pkg:nuget/magick.net-q16-x64.

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 4.1 MEDIUM
AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
SUSE MEDIUM
Red Hat 4.4 LOW

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
None

DescriptionCVE.org

An attacker who can connect to a magick -distribute-cache service can hijack a file descriptor in the server process when a race condition is met.

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

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

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