Skip to main content

Magick.NET CVE-2026-42326

MEDIUM
Out-of-bounds Read (CWE-125)
2026-05-18 https://github.com/ImageMagick/ImageMagick GHSA-7wff-wpr6-vmhm
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 malicious IPTC image file
  2. Delivery
    Deliver file to target host or upload directory
  3. Exploit
    Application invokes Magick.NET IPTC output encoding
  4. Execution
    Off-by-one reads single byte past heap buffer boundary
  5. Impact
    Leak adjacent heap byte or trigger minor fault

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 a vulnerable Magick.NET package (any variant, version < 14.13.1) processes a maliciously crafted input image file and subsequently writes an IPTC output file - both conditions must be met. The CVSS AV:L vector confirms the attacker must operate with local file access: either by uploading a file to a local directory monitored by the application, submitting it through a local processing pipeline, or executing directly on the host. PR:N indicates no special user account privileges are needed for the file delivery step, but the attacker cannot exploit this remotely over a network connection to the host. Exploitation is further limited to the IPTC output writing code path - applications that read images but do not write IPTC output are not affected. The impact is constrained to one byte of potential heap disclosure (C:L) and minor availability disruption (A:L); privilege escalation and code execution are not indicated by the CVSS vector or description.

Impact

The CVSS 5.1 Medium score reflects a constrained risk profile: AV:L (local attack vector) requires the attacker to place or supply a file on the target host, AC:L (low complexity) means no special conditions beyond file delivery, and PR:N (no privileges required) lowers the bar for that delivery step. Impact is deliberately bounded - C:L (low confidentiality) and A:L (low availability) - consistent with a single-byte over-read that may expose one adjacent heap byte or cause a minor fault. No EPSS score was provided in the source data, so exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, and no POC has been identified at time of analysis. The net assessment is a real but low-priority issue: applications that ingest user-supplied images and write IPTC output are the realistic risk surface, and the single-byte scope makes memory disclosure or crash scenarios narrow rather than critical.

Exploit ScenarioDerived

An attacker crafts an image file with a specifically malformed IPTC metadata block and delivers it to a .NET application that uses a vulnerable Magick.NET package to process and re-encode files with IPTC output enabled. When the application writes the IPTC output, the encoder reads one byte beyond the heap buffer boundary, potentially exposing a single byte of adjacent memory content or triggering a minor process fault. No public exploit code exists at time of analysis, and exploitation would require local file delivery to the processing application.

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 heap read in Magick.NET's IPTC encoder exposes all NuGet package variants (Q16, Q16-HDRI, multi-architecture builds) before version 14.13.1 to limited confidentiality and availability impact when processing a crafted input file. The flaw resides in the IPTC output writing pathway: supplying a malicious image file triggers a one-byte over-read of the heap buffer, classified as CWE-125. No active exploitation has been identified (not in CISA KEV), no public exploit code is known, and the local attack vector (AV:L) materially constrains realistic exposure.

RemediationAI

Upgrade all Magick.NET NuGet package references to version 14.13.1 or later, confirmed as the fix version in GitHub Security Advisory GHSA-7wff-wpr6-vmhm (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-7wff-wpr6-vmhm). Update the package reference in project files (e.g., change <PackageReference Include='Magick.NET-Q16-AnyCPU' Version='...' /> to Version='14.13.1') and run dotnet restore. For applications that cannot immediately update, a compensating control is to sanitize or reject input files before IPTC processing: disable IPTC metadata writing for untrusted inputs, or strip metadata from files at ingestion using a separate validation step prior to invoking Magick.NET's IPTC encoder. The trade-off is that stripping metadata may affect legitimate workflows that depend on IPTC data. No patch versioning conflicts are expected given this is a point release of the NuGet packages.

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 official .NET wrapper for the ImageMagick image processing engine, distributed across multiple NuGet packages differentiated by color quantization depth (Q16), HDR support (HDRI), OpenMP parallelism, and target architecture (x64, x86, arm64, AnyCPU). The IPTC (International Press Telecommunications Council) standard defines a binary metadata format embedded within image files. CWE-125 (Out-of-Bounds Read) arises when the IPTC encoder, during output file construction, computes an incorrect buffer boundary and reads one byte beyond the allocated heap region. This class of defect typically results from an off-by-one error in length calculation or pointer arithmetic. Affected CPEs span all Magick.NET NuGet variants: magick.net-q16-anycpu, magick.net-q16-hdri-anycpu, magick.net-q16-hdri-openmp-arm64, magick.net-q16-hdri-openmp-x64, magick.net-q16-hdri-arm64, magick.net-q16-hdri-x64, magick.net-q16-hdri-x86, magick.net-q16-openmp-arm64, magick.net-q16-openmp-x64, and magick.net-q16-arm64, all versions prior to 14.13.1.

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 4.4 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L
Red Hat 5.1 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 writing an IPTC output file a malicious input file could cause an out of bounds read of a single byte.

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