CVE-2025-68618 — Vulnerability in Magick.NET-Q8-OpenMP-arm64
ImageMagick's failure to limit the depth of SVG file reads caused a DoS attack
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.
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
-
Generate an SVG file
-
Read this file using Magick:
./magick /data/ylwang/Tools/LargeScan/targets/ImageMagick/test++/1.svg null
- 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.
dotnet add package Magick.NET-Q8-OpenMP-arm64 --version 14.10.1
dotnet add package Magick.NET-Q16-x86 --version 14.10.1
dotnet add package Magick.NET-Q16-arm64 --version 14.10.1
dotnet add package Magick.NET-Q16-HDRI-OpenMP-arm64 --version 14.10.1
dotnet add package Magick.NET-Q8-x86 --version 14.10.1
dotnet add package Magick.NET-Q8-AnyCPU --version 14.10.1
dotnet add package Magick.NET-Q16-HDRI-arm64 --version 14.10.1
dotnet add package Magick.NET-Q16-HDRI-OpenMP-x64 --version 14.10.1
dotnet add package Magick.NET-Q16-AnyCPU --version 14.10.1
dotnet add package Magick.NET-Q16-OpenMP-arm64 --version 14.10.1
dotnet add package Magick.NET-Q16-HDRI-x64 --version 14.10.1
dotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.10.1
dotnet add package Magick.NET-Q16-HDRI-x86 --version 14.10.1
dotnet add package Magick.NET-Q8-OpenMP-x64 --version 14.10.1
dotnet add package Magick.NET-Q16-OpenMP-x64 --version 14.10.1
dotnet add package Magick.NET-Q16-x64 --version 14.10.1
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).
| Package | Fixed 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.
- CWE-674
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
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
Exploitation requires specific conditions, or the impact is limited.
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
Related CVEs
- CVE-2025-55154HIGH
imagemagick: integer overflows in MNG magnification
- CVE-2026-33901HIGH
ImageMagick has a heap Buffer Overflow in ImageMagick MVG decoder
- CVE-2026-40312MEDIUM
ImageMagick has an off-by-one error in MSL decoder could result in crash
- CVE-2026-47166MEDIUM
ImageMagick: Heap Buffer Over-Read in distributed pixel cache server
- CVE-2023-1289MEDIUM
ImageMagick: Specially crafted SVG leads to segmentation fault and generate trash files in "/tmp", possible to leverage DoS
- CVE-2025-53019LOW
ImageMagick has a Memory Leak in magick stream
- CVE-2026-61865LOW
ImageMagick: Memory Leak in hough lines operation when an operation fails
- CVE-2026-56365LOW
ImageMagick has a memory leak in PNG encoder when writing a MNG image