Skip to main content

Magick.NET CVE-2026-45624

MEDIUM
Out-of-bounds Read (CWE-125)
2026-05-18 https://github.com/ImageMagick/ImageMagick GHSA-pfvh-m9xv-8966
5.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
    Craft image with malicious polynomial distortion arguments
  2. Delivery
    Submit to Magick.NET-based application
  3. Exploit
    Application invokes polynomial distortion locally
  4. Execution
    Out-of-bounds heap read of up to 24 bytes
  5. Impact
    Heap memory disclosed or process crashes

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 that the target application invoke the polynomial distortion operation in Magick.NET with attacker-controlled arguments - specifically, arguments that specify boundary-triggering values. The CVSS AV:L vector indicates the exploit operates at the local processing level: the attacker must be able to supply image content (or distortion parameters) that the application processes locally, which is typical of image upload pipelines, batch processors, or any service that applies polynomial distortion transforms to untrusted inputs. PR:N and UI:N confirm no authenticated session or human interaction is needed once the malicious file reaches the processing code path. Exploitation is limited by: (1) the application must use the polynomial distortion code path specifically - other Magick.NET operations are unaffected; (2) the attack vector is local/file-based, not a direct network socket; (3) impact is read-only heap exposure and potential crash, not arbitrary code execution. Non-default or specialized image processing workflows that never invoke polynomial distortion are not exploitable.

Impact

The overall risk is moderate-low. The CVSS base score of 5.1 reflects a local attack vector (AV:L), low complexity (AC:L), no privilege requirement (PR:N), and no user interaction (UI:N), scoped to the vulnerable component (S:U), with limited confidentiality (C:L) and availability (A:L) impact and no integrity impact (I:N). The local attack vector is the primary risk limiter: exploitation requires that the target .NET application invoke the polynomial distortion code path while processing attacker-controlled image content - this is an application-level processing boundary, not a network service boundary. No EPSS score was provided in the input data; given the absence of KEV listing and no public exploit code, exploitation probability is assessed as low at this time. There is no confirmed active exploitation. The tags 'Buffer Overflow' and 'Information Disclosure' are somewhat misleading - the read-only nature (CWE-125) means this is not a write primitive and code execution is not a directly supported impact per the CVSS vector. The primary real-world concern is memory disclosure in applications that process untrusted images using polynomial distortion, such as image processing pipelines or web services calling Magick.NET locally.

Exploit ScenarioDerived

An attacker submits a crafted image file containing embedded polynomial distortion arguments engineered to trigger the boundary condition to an application that processes user-supplied images using Magick.NET. When the application locally processes the file and invokes the distortion operation, the over-read of up to 24 heap bytes occurs, potentially leaking adjacent heap contents (such as metadata, partial strings, or addresses) back to the attacker via image processing output, error messages, or side-channel timing. No public exploit 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 18, 2026

Out-of-bounds heap over-read in Magick.NET's polynomial distortion operation exposes limited heap memory and can trigger a crash when processing a specially crafted image with specific distortion arguments. Affected are all Magick.NET NuGet package variants (Q16, Q16-HDRI, across AnyCPU, arm64, x64, x86, and OpenMP builds) prior to version 14.13.1. The CVSS vector scores this as a local, low-complexity issue with low confidentiality and availability impact; no public exploit code exists and it is not listed in the CISA KEV catalog at time of analysis.

RemediationAI

Upgrade all affected Magick.NET NuGet packages to version 14.13.1 or later; this is the vendor-confirmed fixed release per GHSA-pfvh-m9xv-8966 (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pfvh-m9xv-8966). Update the package reference in your project file (e.g., change <PackageReference Include="Magick.NET-Q16-AnyCPU" Version="x.x.x" /> to Version 14.13.1 or use a floating >=14.13.1 constraint) and rebuild. If an immediate upgrade is not possible, the most effective compensating control is to validate and reject image inputs before invoking polynomial distortion operations - specifically, enforce argument count and value bounds on distortion parameters at the application layer before passing them to Magick.NET. Disabling the polynomial distortion feature entirely (if not required by the application) eliminates the attack surface with no impact on other operations. There are no known side effects from the upgrade itself.

Affected Packages

nuget magick.net-q16-anycpu fix: 14.13.1
nuget magick.net-q16-arm64 fix: 14.13.1
nuget magick.net-q16-hdri-anycpu fix: 14.13.1
nuget magick.net-q16-hdri-arm64 fix: 14.13.1
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.13.1
nuget magick.net-q16-hdri-openmp-x64 fix: 14.13.1
nuget magick.net-q16-hdri-x64 fix: 14.13.1
nuget magick.net-q16-hdri-x86 fix: 14.13.1
nuget magick.net-q16-openmp-arm64 fix: 14.13.1
nuget magick.net-q16-openmp-x64 fix: 14.13.1
nuget magick.net-q16-x64 fix: 14.13.1
nuget magick.net-q16-x86 fix: 14.13.1
nuget magick.net-q8-anycpu fix: 14.13.1
nuget magick.net-q8-arm64 fix: 14.13.1
nuget magick.net-q8-openmp-arm64 fix: 14.13.1
nuget magick.net-q8-openmp-x64 fix: 14.13.1
nuget magick.net-q8-x64 fix: 14.13.1
nuget magick.net-q8-x86 fix: 14.13.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 18 packages in nuget

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

Technical ContextAI · show details

Magick.NET is the .NET wrapper library for ImageMagick, distributed via NuGet in multiple build variants targeting different architectures (AnyCPU, arm64, x64, x86) and quantum depths (Q16, Q16-HDRI, with optional OpenMP acceleration). The vulnerable code path resides in the polynomial distortion operation, where insufficient bounds checking on caller-supplied arguments allows a read of up to 24 bytes beyond the end of an allocated heap buffer - classified as CWE-125 (Out-of-bounds Read). The GHSA advisory headline refers to a 'Heap Buffer Over-Read of 4 bytes' while the CVE description and advisory body specify 24 bytes; this discrepancy may reflect different measurement points or a title error in the advisory. The over-read can expose adjacent heap contents (information disclosure) or, depending on heap layout, dereference unmapped memory and crash the process (availability impact). All ten NuGet package variants listed in the CPE data share the same underlying ImageMagick distortion code and are equally affected.

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

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

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

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

DescriptionCVE.org

When performing a polynomial distortion an out of bounds over-read of 24 bytes can occur when specifying specific arguments.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% 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

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.

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-openmp-x64
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