NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
.NET
.NET NuGet
Not in CISA KEV
MEDIUM severity

ImageMagick has has a stack-buffer-overflow in MNG encoder with oversized palleteGHSA-98cp-rj9f-6v5g

MEDIUM

GHSA-98cp-rj9f-6v5g is a medium-severity (CVSS 6.9) remote code execution vulnerability in Magick.NET-Q16-AnyCPU. A fix is available for Magick.NET-Q16-AnyCPU — see the affected versions and patch details below.

Published
Updated
Affected
18 pkgs
Patched
18 / 18
Exploits
None indexed
Exploitation data as of Apr 16, 2026 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

18 pkgs affected
.NETMagick.NET-Q16-AnyCPU.NETMagick.NET-Q16-HDRI-AnyCPU.NETMagick.NET-Q16-HDRI-OpenMP-arm64.NETMagick.NET-Q16-HDRI-arm64.NETMagick.NET-Q16-HDRI-x64.NETMagick.NET-Q16-HDRI-x86.NETMagick.NET-Q16-OpenMP-arm64.NETMagick.NET-Q16-OpenMP-x64+10 more

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.

Description

The patch for GHSA-7h7q-j33q-hvpf was incomplete and still allows a stack buffer overflow for the multi frame images.

Affected Packages

18 total 18 fixed
EcosystemPackageVulnerable rangeFix
.NETNuGetMagick.NET-Q16-AnyCPUall versions14.12.0dotnet add package Magick.NET-Q16-AnyCPU --version 14.12.0
.NETNuGetMagick.NET-Q16-HDRI-AnyCPUall versions14.12.0dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.12.0
.NETNuGetMagick.NET-Q16-HDRI-OpenMP-arm64all versions14.12.0dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.12.0
.NETNuGetMagick.NET-Q16-HDRI-arm64all versions14.12.0dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.12.0
.NETNuGetMagick.NET-Q16-HDRI-x64all versions14.12.0dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.12.0
.NETNuGetMagick.NET-Q16-HDRI-x86all versions14.12.0dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.12.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for Magick.NET-Q16-AnyCPU, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update Magick.NET-Q16-AnyCPU to 14.12.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-98cp-rj9f-6v5g is resolved across your whole dependency graph.

  3. Workarounds

    Stop feeding it untrusted input: reject or quarantine files and payloads from unverified sources until you can upgrade, restrict accepted formats to the ones you actually need, and run the parsing or decoding step in a least-privileged sandbox or short-lived worker so a crash or corrupted read cannot reach the rest of the process.

Frequently Asked Questions

The patch for GHSA-7h7q-j33q-hvpf was incomplete and still allows a stack buffer overflow for the multi frame images.
O3 Security · Impact-Aware SCA

Is GHSA-98cp-rj9f-6v5g in your dependencies?

Find it across NuGet, including transitive dependencies.

ImageMagick has has a stack-buffer-overflow in MNG…