Skip to main content

Magick.NET CVE-2026-45358

MEDIUM
Out-of-bounds Read (CWE-125)
2026-05-18 https://github.com/ImageMagick/ImageMagick GHSA-cr6r-hmj8-pr7r
5.3
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
    Submit crafted image with boundary-case metadata
  2. Delivery
    Application passes input to Magick.NET meta encoder
  3. Exploit
    Off-by-one error overruns buffer by one index
  4. Execution
    Single out-of-bounds byte read from adjacent memory
  5. Impact
    Byte value returned or observable in application response

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

The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates no special conditions are required on the network or authentication side - remote unauthenticated exploitation is possible against any application that accepts attacker-controlled image or metadata input and uses an affected Magick.NET Q16/Q16-HDRI package below version 14.13.1. The primary limiting factor is the impact ceiling: only a single byte of memory adjacent to the metadata buffer is exposed, severely restricting the practical utility for an attacker seeking meaningful data exfiltration. Additional limiting factors include the requirement that the application must invoke Magick.NET's meta encoder code path (i.e., metadata encoding must be part of the processing workflow, not merely decoding); applications that only decode images without re-encoding metadata are less directly exposed. Platform and architecture are not restricting factors - all CPU targets (x64, x86, ARM64, AnyCPU) and all distributed variants are affected equally.

Impact

The CVSS 5.3 Medium score (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) indicates network-reachable, low-complexity, unauthenticated exploitation with no user interaction, but impact is limited strictly to partial confidentiality loss - no integrity or availability impact. The single-byte read limitation significantly constrains what an attacker can learn; practical exploitation for meaningful data exfiltration would require repeated triggering and favorable memory layout, making reliable exploitation non-trivial despite the low attack complexity rating. No EPSS score data was provided in the source intelligence, and the absence of a CISA KEV listing and no identified POC code collectively suggest no active exploitation is occurring. The tags 'Information Disclosure' and 'Buffer Overflow' are consistent with the CWE-125 classification and the described behavior, though the 'Buffer Overflow' tag is somewhat misleading - this is a read overrun, not a write overflow, so code execution is not a credible outcome here. Overall real-world risk is low-to-moderate: the network-accessible, no-auth attack vector elevates urgency for internet-facing applications, but the one-byte read impact and lack of observed exploitation place this below critical priority.

Exploit ScenarioDerived

An attacker submits a crafted image file with malformed or boundary-case metadata values to a web application or API endpoint that uses Magick.NET for image processing. When Magick.NET's meta encoder processes the image, the off-by-one error causes it to read one byte beyond the allocated metadata buffer, potentially leaking a byte of adjacent memory in the response or error output. No public proof-of-concept exists at time of analysis, so reliable exploitation would require local experimentation with memory layouts.

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 single-byte read in Magick.NET's meta encoder affects all Q16 and Q16-HDRI NuGet package variants prior to version 14.13.1. An off-by-one indexing error in the meta encoder allows a remote unauthenticated attacker to read one byte beyond the allocated buffer boundary during metadata processing, resulting in limited memory disclosure. No public exploit code exists and this vulnerability is not listed in the CISA KEV catalog; however, the CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates the flaw is network-reachable without authentication or user interaction, making any application that processes attacker-supplied images or metadata a viable target.

RemediationAI

Vendor-released patch: 14.13.1. Upgrade all affected Magick.NET NuGet packages (Q16 and Q16-HDRI variants, all architectures) to version 14.13.1 or later via NuGet package manager (dotnet add package Magick.NET-Q16-AnyCPU --version 14.13.1 or the equivalent for the specific variant in use). Full advisory details are available at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-cr6r-hmj8-pr7r. If immediate patching is not possible, applications that accept images or metadata from untrusted sources should apply input validation and size restrictions on metadata fields before passing data to Magick.NET's encoder pipeline; however, this is a mitigating measure only and does not eliminate the underlying flaw. Disabling or sandboxing metadata processing operations (e.g., stripping all metadata before encoding with Magick.NET) would reduce exposure but may break application functionality dependent on EXIF or IPTC data handling.

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/NuGet binding library for ImageMagick, distributed in multiple architecture and color-depth variants (Q16, Q16-HDRI, x64, ARM64, x86, AnyCPU). The root cause is classified as CWE-125 (Out-of-bounds Read): an off-by-one arithmetic error in the meta encoder causes the read pointer or loop bound to exceed the valid buffer by exactly one index position, exposing a single byte of adjacent heap or stack memory. Such errors typically arise from incorrect use of less-than-or-equal comparisons instead of strict less-than in bounds checks, or from zero-indexed buffers being accessed with a one-based length value. The meta encoder processes image metadata (e.g., EXIF, IPTC, comment fields), meaning the flaw is reachable whenever metadata encoding is triggered. Affected CPEs span all major Magick.NET Q16 variants: pkg:nuget/magick.net-q16-anycpu, pkg:nuget/magick.net-q16-hdri-anycpu, and all architecture-specific permutations (arm64, x64, x86, OpenMP variants).

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

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

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

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

DescriptionCVE.org

An of by one in the meta encoder could result in an out of bounds read of a single byte in the meta encoder.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% 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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
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