CVE-2026-25985: ImageMagick Memory Allocation With Excessive Without Vulnerability
HIGHCVE-2026-25985 is a HIGH (CVSS 7.5) memory allocation with excessive without vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting ImageMagick libraries in the NuGet ecosystem. The issue involves memory allocation with excessive without limits in the internal svg decoder. Remediation is available by upgrading affected packages to version 14.10.3.
CVE-2026-25985 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-25985
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.
Upgrade Magick.NET-Q16-AnyCPU to 14.10.3
Upgrade Magick.NET-Q16-HDRI-AnyCPU to 14.10.3
Upgrade Magick.NET-Q16-HDRI-OpenMP-arm64 to 14.10.3
Upgrade Magick.NET-Q16-HDRI-OpenMP-x64 to 14.10.3
Upgrade Magick.NET-Q16-HDRI-arm64 to 14.10.3
Upgrade Magick.NET-Q16-HDRI-x64 to 14.10.3
Upgrade Magick.NET-Q16-HDRI-x86 to 14.10.3
Upgrade Magick.NET-Q16-OpenMP-arm64 to 14.10.3
Upgrade Magick.NET-Q16-OpenMP-x64 to 14.10.3
Upgrade Magick.NET-Q16-OpenMP-x86 to 14.10.3
Upgrade Magick.NET-Q16-arm64 to 14.10.3
Upgrade Magick.NET-Q16-x64 to 14.10.3
Upgrade Magick.NET-Q16-x86 to 14.10.3
Upgrade Magick.NET-Q8-AnyCPU to 14.10.3
Upgrade Magick.NET-Q8-OpenMP-arm64 to 14.10.3
Upgrade Magick.NET-Q8-OpenMP-x64 to 14.10.3
Upgrade Magick.NET-Q8-arm64 to 14.10.3
Upgrade Magick.NET-Q8-x64 to 14.10.3
Upgrade Magick.NET-Q8-x86 to 14.10.3
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-25985, 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.10.3), 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-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. 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
CVE-2026-25985 Affected ImageMagick Versions
19 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Magick.NET-Q16-AnyCPU
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-HDRI-AnyCPU
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-HDRI-OpenMP-arm64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-HDRI-OpenMP-x64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-HDRI-arm64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-HDRI-x64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-HDRI-x86
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-OpenMP-arm64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-OpenMP-x64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-OpenMP-x86
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-arm64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-x64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q16-x86
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q8-AnyCPU
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q8-OpenMP-arm64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q8-OpenMP-x64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q8-arm64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q8-x64
|
NuGet |
< 14.10.3
|
14.10.3
|
|
Magick.NET-Q8-x86
|
NuGet |
< 14.10.3
|
14.10.3
|
References
Frequently Asked Questions
What is CVE-2026-25985?
Which ImageMagick versions are affected?
What version fixes CVE-2026-25985?
Is Magick.NET-Q16-AnyCPU affected?
Is Magick.NET-Q16-HDRI-AnyCPU affected?
What is the CVSS score of CVE-2026-25985?
What CWE is associated with CVE-2026-25985?
How can I check NuGet dependencies for CVE-2026-25985?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v7g2-m8c5-mf84",
"modified" : "2026-02-24T15:44:19Z",
"published" : "2026-02-24T15:44:19Z",
"aliases" : [ "CVE-2026-25985" ],
"summary" : "ImageMagick: Memory allocation with excessive without limits in the internal SVG decoder",
"details" : "A crafted SVG file containing an malicious element causes ImageMagick to attempt to allocate ~674 GB of memory, leading to an out-of-memory abort.\n\nFound via AFL++ fuzzing with afl-clang-lto instrumentation and AddressSanitizer.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/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.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-HDRI-AnyCPU"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-HDRI-OpenMP-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-HDRI-OpenMP-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-HDRI-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-HDRI-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-HDRI-x86"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-OpenMP-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-OpenMP-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-OpenMP-x86"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q16-x86"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q8-AnyCPU"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q8-OpenMP-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q8-OpenMP-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q8-arm64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q8-x64"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Magick.NET-Q8-x86"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "14.10.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-v7g2-m8c5-mf84"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25985"
}, {
"type" : "WEB",
"url" : "https://github.com/ImageMagick/ImageMagick/commit/1a51eb9af00c36724660e294520878fd1f13e312"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ImageMagick/ImageMagick"
}, {
"type" : "WEB",
"url" : "https://github.com/dlemstra/Magick.NET/releases/tag/14.10.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770", "CWE-789" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-24T15:44:19Z",
"nvd_published_at" : "2026-02-24T02:16:02Z"
}
}