Skip to main content

CVE-2025-68618 — Vulnerability in Magick.NET-Q8-OpenMP-arm64

MEDIUM

ImageMagick's failure to limit the depth of SVG file reads caused a DoS attack

Published December 30, 2025Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.64%). Schedule for your next planned update.

Does your project use an affected Magick.NET-Q8-OpenMP-arm64 version?

Paste your packages.lock.json to check it for CVE-2025-68618 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my packages.lock.json

Summary

Summary

Using Magick to read a malicious SVG file resulted in a DoS attack.

Details

bt obtained using gdb:

#4 0x0000555555794c9c in ResizeMagickMemory (memory=0x7fffee203800, size=391344) at MagickCore/memory.c:1443
#5 0x0000555555794e5a in ResizeQuantumMemory (memory=0x7fffee203800, count=48918, quantum=8) 
at MagickCore/memory.c:1508
#6 0x0000555555acc8ed in SVGStartElement (context=0x517000000080, name=0x5190000055e3 "g", attributes=0x0) 
at coders/svg.c:1254
#7 0x00007ffff6799b1c in xmlParseStartTag () at /lib/x86_64-linux-gnu/libxml2.so.2
#8 0x00007ffff68c7bb8 in () at /lib/x86_64-linux-gnu/libxml2.so.2
#9 0x00007ffff67a03f1 in xmlParseChunk () at /lib/x86_64-linux-gnu/libxml2.so.2

This is related to the SVGStartElement and ResizeQuantumMemory functions.

PoC

  1. Generate an SVG file

  2. Read this file using Magick:

./magick /data/ylwang/Tools/LargeScan/targets/ImageMagick/test++/1.svg null
  1. Causes a DoS Attack

My server has a large amount of memory, causing a stack overflow to take a long time. I'll use the Windows release version as an example:

PS C:\Program Files\ImageMagick-7.1.2-Q8> .\magick.exe -ping 1.svg null:
PS C:\Program Files\ImageMagick-7.1.2-Q8> echo $LASTEXITCODE
-1073741571

The error code -1073741571 indicates a crash due to a stack overflow.

Impact

This is a DoS vulnerability and all applications using Magick to parse SVG files are affected.

Advisory Timeline

  • First published December 30, 2025 (331 days ago).
  • Last revised September 10, 2026 — 253 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update Magick.NET-Q8-OpenMP-arm64 to 14.10.1 or later
dotnet add package Magick.NET-Q8-OpenMP-arm64 --version 14.10.1
NuGet
Update Magick.NET-Q16-x86 to 14.10.1 or later
dotnet add package Magick.NET-Q16-x86 --version 14.10.1
NuGet
Update Magick.NET-Q16-arm64 to 14.10.1 or later
dotnet add package Magick.NET-Q16-arm64 --version 14.10.1
NuGet
Update Magick.NET-Q16-HDRI-OpenMP-arm64 to 14.10.1 or later
dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.10.1
NuGet
Update Magick.NET-Q8-x86 to 14.10.1 or later
dotnet add package Magick.NET-Q8-x86 --version 14.10.1
NuGet
Update Magick.NET-Q8-AnyCPU to 14.10.1 or later
dotnet add package Magick.NET-Q8-AnyCPU --version 14.10.1
NuGet
Update Magick.NET-Q16-HDRI-arm64 to 14.10.1 or later
dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.10.1
NuGet
Update Magick.NET-Q16-HDRI-OpenMP-x64 to 14.10.1 or later
dotnet add package Magick.NET-Q16-HDRI-OpenMP-x64 --version 14.10.1
NuGet
Update Magick.NET-Q16-AnyCPU to 14.10.1 or later
dotnet add package Magick.NET-Q16-AnyCPU --version 14.10.1
NuGet
Update Magick.NET-Q16-OpenMP-arm64 to 14.10.1 or later
dotnet add package Magick.NET-Q16-OpenMP-arm64 --version 14.10.1
NuGet
Update Magick.NET-Q16-HDRI-x64 to 14.10.1 or later
dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.10.1
NuGet
Update Magick.NET-Q16-HDRI-AnyCPU to 14.10.1 or later
dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.10.1
NuGet
Update Magick.NET-Q16-HDRI-x86 to 14.10.1 or later
dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.10.1
NuGet
Update Magick.NET-Q8-OpenMP-x64 to 14.10.1 or later
dotnet add package Magick.NET-Q8-OpenMP-x64 --version 14.10.1
NuGet
Update Magick.NET-Q16-OpenMP-x64 to 14.10.1 or later
dotnet add package Magick.NET-Q16-OpenMP-x64 --version 14.10.1
NuGet
Update Magick.NET-Q16-x64 to 14.10.1 or later
dotnet add package Magick.NET-Q16-x64 --version 14.10.1
NuGet
Update Magick.NET-Q8-arm64 to 14.10.1 or later
dotnet add package Magick.NET-Q8-arm64 --version 14.10.1

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (17)

Affects 1 ecosystem: NuGet (17).

PackageFixed In
Magick.NET-Q8-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+48 more)14.10.1
Magick.NET-Q16-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+219 more)14.10.1
Magick.NET-Q16-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+48 more)14.10.1
Magick.NET-Q16-HDRI-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+48 more)14.10.1
Magick.NET-Q8-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+219 more)14.10.1
Magick.NET-Q8-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+203 more)14.10.1
Magick.NET-Q16-HDRI-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+48 more)14.10.1
Magick.NET-Q16-HDRI-OpenMP-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+100 more)14.10.1
Magick.NET-Q16-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+203 more)14.10.1
Magick.NET-Q16-OpenMP-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+48 more)14.10.1
Magick.NET-Q16-HDRI-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+200 more)14.10.1
Magick.NET-Q16-HDRI-AnyCPU NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+200 more)14.10.1
Magick.NET-Q16-HDRI-x86 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+200 more)14.10.1
Magick.NET-Q8-OpenMP-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+100 more)14.10.1
Magick.NET-Q16-OpenMP-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+100 more)14.10.1
Magick.NET-Q16-x64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+219 more)14.10.1
Magick.NET-Q8-arm64 NuGet · Affected: 10.0.0, 10.1.0, 11.0.0, 11.1.0 (+48 more)14.10.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Frequently Asked Questions

What is CVE-2025-68618?
ImageMagick's failure to limit the depth of SVG file reads caused a DoS attack. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
How do I check if my project is affected by CVE-2025-68618?
CVE-2025-68618 affects Magick.NET-Q8-OpenMP-arm64, Magick.NET-Q16-x86 and Magick.NET-Q16-arm64 (and 14 more). It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-68618 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.64%
EPSS percentile: 45.1

This is a below-median EPSS score — only 45.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-p27m-hp98-6637

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my packages.lock.json