CVE-2026-34238: Magick.NET Q16 AnyCPU ImageMagick Has An Integer Overflow Vulnerability

MODERATE
Advisory Identifier: GHSA-26qp-ffjh-2x4v
CVSS 5.1
CWE-190 CWE-787
Published
Advisory Summary

CVE-2026-34238 is a MODERATE (CVSS 5.1) imagemagick has an integer overflow vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Magick.NET Q16 AnyCPU libraries in the NuGet ecosystem. The issue involves imagemagick has an integer overflow in despeckle operation causing a heap buffer overflow on 32-bit builds. Remediation is available by upgrading affected packages to version 14.12.0.

CVE-2026-34238 at a Glance

CVE Identifier CVE-2026-34238
GHSA Identifier GHSA-26qp-ffjh-2x4v
Severity MODERATE
CVSS v3.1 Base Score 5.1
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Magick.NET Q16 AnyCPU
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-34238

To remediate this vulnerability, upgrade all affected Magick.NET Q16 AnyCPU 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.12.0
Upgrade Magick.NET-Q16-AnyCPU to 14.12.0
Magick.NET-Q16-HDRI-AnyCPU fixed: 14.12.0
Upgrade Magick.NET-Q16-HDRI-AnyCPU to 14.12.0
Magick.NET-Q16-HDRI-x86 fixed: 14.12.0
Upgrade Magick.NET-Q16-HDRI-x86 to 14.12.0
Magick.NET-Q16-x86 fixed: 14.12.0
Upgrade Magick.NET-Q16-x86 to 14.12.0
Magick.NET-Q8-AnyCPU fixed: 14.12.0
Upgrade Magick.NET-Q8-AnyCPU to 14.12.0
Magick.NET-Q8-x86 fixed: 14.12.0
Upgrade Magick.NET-Q8-x86 to 14.12.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-34238, inspect your project dependencies for Magick.NET Q16 AnyCPU:

inspect dependencies for Magick.NET-Q16-AnyCPU

Analyze the terminal output to locate any version of Magick.NET Q16 AnyCPU in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.12.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 Magick.NET Q16 AnyCPU, 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

An integer overflow in the despeckle operation causes a heap buffer overflow on 32-bit builds that will result in an out of bounds write. ``` ==1551685==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xea2fb818 at pc 0x56cbc42a bp 0xffc4ce48 sp 0xffc4ce38 WRITE of size 8 at 0xea2fb818 thread T0 ```

CVE-2026-34238 Affected Magick.NET Q16 AnyCPU Versions

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

References

Frequently Asked Questions

What is CVE-2026-34238?
CVE-2026-34238 is a security vulnerability in Magick.NET Q16 AnyCPU involving ImageMagick has an integer overflow in despeckle operation causing a heap buffer overflow on 32-bit builds under CWE-190: Integer Overflow or Wraparound.
Which Magick.NET Q16 AnyCPU versions are affected?
Affected versions include releases prior to 14.12.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-34238?
Upgrading to 14.12.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.12.0. Upgrade your dependency to 14.12.0 or later.
Is Magick.NET-Q16-HDRI-AnyCPU affected?
Yes, Magick.NET-Q16-HDRI-AnyCPU is affected in releases prior to 14.12.0. Upgrade your dependency to 14.12.0 or later.
What is the CVSS score of CVE-2026-34238?
CVE-2026-34238 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-34238?
CVE-2026-34238 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-34238?
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-26qp-ffjh-2x4v",
  "modified" : "2026-04-24T20:47:58Z",
  "published" : "2026-04-13T19:10:03Z",
  "aliases" : [ "CVE-2026-34238" ],
  "summary" : "ImageMagick has an integer overflow in despeckle operation causing a heap buffer overflow on 32-bit builds",
  "details" : "An integer overflow in the despeckle operation causes a heap buffer overflow on 32-bit builds that will result in an out of bounds write.\n\n```\n==1551685==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xea2fb818 at pc 0x56cbc42a bp 0xffc4ce48 sp 0xffc4ce38\nWRITE of size 8 at 0xea2fb818 thread T0\n```",
  "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.12.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q16-HDRI-AnyCPU"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.12.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q16-HDRI-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.12.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q16-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.12.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q8-AnyCPU"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.12.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Magick.NET-Q8-x86"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "14.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-26qp-ffjh-2x4v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34238"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ImageMagick/ImageMagick/commit/bcd8519c70ecd9ebbc180920f2cf97b267d1f440"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ImageMagick/ImageMagick"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190", "CWE-787" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-13T19:10:03Z",
    "nvd_published_at" : "2026-04-13T22:16:29Z"
  }
}