CVE-2026-62946: ImageMagick Integer Overflow Vulnerability

MODERATE
Advisory Identifier: GHSA-h22j-f9xw-xjjm
CVSS 5.1
CWE-190
Published
Advisory Summary

CVE-2026-62946 is a MODERATE (CVSS 5.1) integer overflow vulnerability (CWE-190: Integer Overflow or Wraparound) affecting ImageMagick libraries in the NuGet ecosystem. The issue involves integer overflow in jnx decoder causes heap buffer over-write when processing extremly large files on 32-bit builds. Remediation is available by upgrading affected packages to version 14.15.0.

CVE-2026-62946 at a Glance

CVE Identifier CVE-2026-62946
GHSA Identifier GHSA-h22j-f9xw-xjjm
Severity MODERATE
CVSS v3.1 Base Score 5.1
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product ImageMagick
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 5.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-62946

To remediate this vulnerability, upgrade all affected ImageMagick dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Magick.NET-Q16-AnyCPU fixed: 14.15.0
Upgrade Magick.NET-Q16-AnyCPU to 14.15.0
Magick.NET-Q16-HDRI-AnyCPU fixed: 14.15.0
Upgrade Magick.NET-Q16-HDRI-AnyCPU to 14.15.0
Magick.NET-Q16-HDRI-x86 fixed: 14.15.0
Upgrade Magick.NET-Q16-HDRI-x86 to 14.15.0
Magick.NET-Q16-x86 fixed: 14.15.0
Upgrade Magick.NET-Q16-x86 to 14.15.0
Magick.NET-Q8-AnyCPU fixed: 14.15.0
Upgrade Magick.NET-Q8-AnyCPU to 14.15.0
Magick.NET-Q8-x86 fixed: 14.15.0
Upgrade Magick.NET-Q8-x86 to 14.15.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for Magick.NET-Q16-AnyCPU

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-62946, inspect your project dependencies for ImageMagick:

inspect dependencies for Magick.NET-Q16-AnyCPU

Analyze the terminal output to locate any version of ImageMagick in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.15.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In ImageMagick, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

When processing an extremely large JNX file on 32-bit platforms an integer overflow will happen that can cause a heap buffer over-write.

CVE-2026-62946 Affected ImageMagick Versions

6 component(s)
Fixed Versions:
14.15.0
Product / Package Ecosystem Affected Versions Fixed Version
Magick.NET-Q16-AnyCPU
NuGet
< 14.15.0
14.15.0
Magick.NET-Q16-HDRI-AnyCPU
NuGet
< 14.15.0
14.15.0
Magick.NET-Q16-HDRI-x86
NuGet
< 14.15.0
14.15.0
Magick.NET-Q16-x86
NuGet
< 14.15.0
14.15.0
Magick.NET-Q8-AnyCPU
NuGet
< 14.15.0
14.15.0
Magick.NET-Q8-x86
NuGet
< 14.15.0
14.15.0

References

Frequently Asked Questions

What is CVE-2026-62946?
CVE-2026-62946 is a security vulnerability in ImageMagick involving Integer Overflow in JNX decoder causes heap buffer over-write when processing extremly large files on 32-bit builds under CWE-190: Integer Overflow or Wraparound.
Which ImageMagick versions are affected?
Affected versions include releases prior to 14.15.0 across affected packages: Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU, Magick.NET-Q16-HDRI-x86, Magick.NET-Q16-x86, Magick.NET-Q8-AnyCPU, Magick.NET-Q8-x86.
What version fixes CVE-2026-62946?
Upgrading to 14.15.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Magick.NET-Q16-AnyCPU affected?
Yes, Magick.NET-Q16-AnyCPU is affected in releases prior to 14.15.0. Upgrade your dependency to 14.15.0 or later.
Is Magick.NET-Q16-HDRI-AnyCPU affected?
Yes, Magick.NET-Q16-HDRI-AnyCPU is affected in releases prior to 14.15.0. Upgrade your dependency to 14.15.0 or later.
What is the CVSS score of CVE-2026-62946?
CVE-2026-62946 has a CVSS v3.1 base score of 5.1 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-62946?
CVE-2026-62946 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check NuGet dependencies for CVE-2026-62946?
Run the dependency tree command: 'inspect dependencies for Magick.NET-Q16-AnyCPU'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h22j-f9xw-xjjm",
  "modified" : "2026-07-24T16:20:31Z",
  "published" : "2026-07-24T16:20:31Z",
  "aliases" : [ "CVE-2026-62946" ],
  "summary" : "ImageMagick: Integer Overflow in JNX decoder causes heap buffer over-write when processing extremly large files on 32-bit builds",
  "details" : "When processing an extremely large JNX file on 32-bit platforms an integer overflow will happen that can cause a heap buffer over-write.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q16-AnyCPU"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.15.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q16-HDRI-AnyCPU"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.15.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q16-HDRI-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.15.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q16-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.15.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q8-AnyCPU"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.15.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q8-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.15.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-h22j-f9xw-xjjm"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ImageMagick/ImageMagick"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dlemstra/Magick.NET/releases/tag/14.15.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-24T16:20:31Z",
    "nvd_published_at" : null
  }
}