Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
.NET NuGet

GHSA-pwg5-6jfc-crvh

MEDIUMFix: ImageMagick/ImageMagick@3d653be

GHSA-pwg5-6jfc-crvh is a medium-severity (CVSS 5.5) vulnerability in Magick.NET-Q16-AnyCPU. O3 Security confirms whether GHSA-pwg5-6jfc-crvh is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

ImageMagick has a heap out-of-bounds write in JP2 encoder

Also known asCVE-2026-40310
Published
Apr 14, 2026
Updated
Apr 21, 2026
Affected
16 pkgs
Patched
16 / 16
Exploits
None indexed

EPSS Exploitation Probability

via FIRST.org ↗
0.2%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs9th percentile — riskier than 9% of all scored CVEsHighest risk

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

Real-World Exposure

16 pkgs affected
.NETMagick.NET-Q16-AnyCPU.NETMagick.NET-Q16-HDRI-AnyCPU.NETMagick.NET-Q16-HDRI-OpenMP-arm64.NETMagick.NET-Q16-HDRI-x64.NETMagick.NET-Q16-HDRI-x86.NETMagick.NET-Q16-OpenMP-arm64.NETMagick.NET-Q16-OpenMP-x64.NETMagick.NET-Q16-arm64+8 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

Heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index.

Affected Packages

16 total 16 fixed
EcosystemPackageVulnerable rangeFix
.NETNuGetMagick.NET-Q16-AnyCPUall versions14.12.0
.NETNuGetMagick.NET-Q16-HDRI-AnyCPUall versions14.12.0
.NETNuGetMagick.NET-Q16-HDRI-OpenMP-arm64all versions14.12.0
.NETNuGetMagick.NET-Q16-HDRI-x64all versions14.12.0
.NETNuGetMagick.NET-Q16-HDRI-x86all versions14.12.0
.NETNuGetMagick.NET-Q16-OpenMP-arm64all versions14.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. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  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-pwg5-6jfc-crvh is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-pwg5-6jfc-crvh is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-pwg5-6jfc-crvh. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

Heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index.
O3 Security · Impact-Aware SCA

Is GHSA-pwg5-6jfc-crvh in your dependencies?

O3 detects GHSA-pwg5-6jfc-crvh across NuGet dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.