Skip to main content

Magick.NET CVE-2026-46521

MEDIUM
Incorrect Calculation of Buffer Size (CWE-131)
2026-05-18 https://github.com/ImageMagick/ImageMagick GHSA-jcqp-6r6f-3mfx
5.5
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 input triggering LZMA encode path
  2. Delivery
    Deliver crafted image to target system or service
  3. Exploit
    User or process invokes Magick.NET MIFF encoding with LZMA
  4. Execution
    Missing buffer size check bypassed in encoder
  5. Persist
    Heap buffer over-write occurs
  6. Impact
    Application process crashes (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer size calculation
Exploitation Conditions

The vulnerable code path is reached only when the Magick.NET MIFF encoder writes an image using LZMA compression - this is not the default compression mode for most image processing workflows and must be explicitly selected or result from processing a file that specifies LZMA. The CVSS vector AV:L confirms the exploit executes on the local system (not remotely over a network), and UI:R confirms that a user or automated process must actively trigger the image encoding operation on attacker-supplied input. Exploitation is therefore limited to applications that: (1) accept externally supplied image data, (2) encode output in MIFF format, and (3) have LZMA compression enabled on that encode path. Default MIFF encoding configurations that do not use LZMA are not affected. There is no authentication requirement (PR:N) to trigger the bug once local access or file delivery is achieved, but the requirement for local execution and user-initiated processing significantly limits the exploitable attack surface compared to a network-reachable vulnerability.

Impact

The CVSS 3.1 base score of 5.5 (Medium) reflects a constrained threat model: AV:L requires the exploit to be triggered on the local system; UI:R means a user or process must actively invoke image processing on attacker-supplied input; PR:N indicates no prior authentication to the affected system is needed. The impact is limited to availability (A:H), with no confidentiality or integrity compromise (C:N/I:N), making data exfiltration or code execution scenarios unsupported by the current scoring. No EPSS data was provided, and neither CISA KEV listing nor public proof-of-concept code has been identified, further suppressing real-world exploitation risk. The combination of a local attack vector, required user interaction, and DoS-only impact places this vulnerability in a moderate-priority remediation tier - relevant for applications that process untrusted MIFF images with LZMA compression, but not an emergency for general-purpose .NET applications unless that specific code path is reachable from untrusted input. The heap over-write primitive theoretically carries exploit development potential, but the CVSS scope remains unchanged (S:U), and no researcher has publicly demonstrated control-flow hijacking.

Exploit ScenarioDerived

An attacker crafts a malicious MIFF image file designed to trigger the missing buffer-size check when LZMA compression is applied during encoding, then delivers the file to a target user or uploads it to a service backed by a Magick.NET-based application (e.g., an image conversion or thumbnail generation service). When the application processes the file - saving or re-encoding it as a LZMA-compressed MIFF - the heap buffer over-write is triggered, crashing the application process and causing a denial of service. No public proof-of-concept has been identified, so exploitation currently requires independent reproduction of the vulnerability.

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

Heap buffer over-write in Magick.NET's MIFF encoder triggers an out-of-bounds write when LZMA compression is active, due to a missing buffer size check (CWE-131). All Magick.NET NuGet package variants prior to version 14.13.1 are affected across multiple architectures (AnyCPU, x64, x86, arm64) and depth configurations (Q16, Q16-HDRI, OpenMP). An attacker who can deliver a crafted MIFF file for local processing can crash the consuming application, resulting in a complete availability impact. No public exploit code or CISA KEV listing exists at time of analysis, limiting real-world severity despite the heap write primitive.

RemediationAI

Upgrade all Magick.NET NuGet packages to version 14.13.1 or later - this is the vendor-confirmed fix version per GHSA-jcqp-6r6f-3mfx. Update each affected package variant in use (e.g., Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-x64, etc.) via NuGet package manager or dotnet CLI: 'dotnet add package Magick.NET-Q16-AnyCPU --version 14.13.1'. If an immediate upgrade is not feasible, the primary compensating control is to avoid writing MIFF images with LZMA compression - applications can switch to a different MIFF compression type (e.g., Zip or RLE) or a different output format entirely; note this may affect interoperability with downstream consumers expecting LZMA-compressed MIFF. Additionally, if Magick.NET processes user-supplied files, restrict the input path to trusted sources at the application boundary to prevent reaching the vulnerable MIFF encoder path. Advisory reference: https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-jcqp-6r6f-3mfx.

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 as multiple NuGet packages differentiated by color depth (Q16, Q16-HDRI), CPU architecture (AnyCPU, x64, x86, arm64), and threading model (standard, OpenMP). The vulnerability resides in the MIFF (Magick Image File Format) encoder, specifically on the code path that applies LZMA (Lempel-Ziv-Markov chain Algorithm) compression. CWE-131 (Incorrect Calculation of Buffer Size) identifies the root cause: a missing validation check means the encoder does not correctly calculate or enforce the destination buffer size before writing compressed output, resulting in a heap buffer over-write. LZMA compression is an optional but legitimate compression codec supported by MIFF. The bug is triggered during encoding (write path), not decoding, meaning the vulnerable path executes when the library is writing/saving an image with LZMA compression enabled.

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.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 5.5 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
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

When using LZMA compression in the MIFF encoder an out of bounds write can occur due to a missing check.

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

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.

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