Описание
ImageMagick's failure to limit the depth of SVG file reads caused a DoS attack
Summary
Using Magick to read a malicious SVG file resulted in a DoS attack.
Details
bt obtained using gdb:
This is related to the SVGStartElement and ResizeQuantumMemory functions.
PoC
-
Generate an SVG file
-
Read this file using Magick:
- 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:
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.
Пакеты
Magick.NET-Q16-AnyCPU
< 14.10.1
14.10.1
Magick.NET-Q16-HDRI-AnyCPU
< 14.10.1
14.10.1
Magick.NET-Q16-HDRI-x86
< 14.10.1
14.10.1
Magick.NET-Q16-x86
< 14.10.1
14.10.1
Magick.NET-Q8-AnyCPU
< 14.10.1
14.10.1
Magick.NET-Q8-x86
< 14.10.1
14.10.1
Magick.NET-Q8-arm64
< 14.10.1
14.10.1
Magick.NET-Q8-OpenMP-x64
< 14.10.1
14.10.1
Magick.NET-Q8-OpenMP-arm64
< 14.10.1
14.10.1
Magick.NET-Q16-x64
< 14.10.1
14.10.1
Magick.NET-Q16-arm64
< 14.10.1
14.10.1
Magick.NET-Q16-OpenMP-x64
< 14.10.1
14.10.1
Magick.NET-Q16-OpenMP-arm64
< 14.10.1
14.10.1
Magick.NET-Q16-HDRI-x64
< 14.10.1
14.10.1
Magick.NET-Q16-HDRI-arm64
< 14.10.1
14.10.1
Magick.NET-Q16-HDRI-OpenMP-x64
< 14.10.1
14.10.1
Magick.NET-Q16-HDRI-OpenMP-arm64
< 14.10.1
14.10.1
Связанные уязвимости
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-12, using Magick to read a malicious SVG file resulted in a DoS attack. Version 7.1.2-12 fixes the issue.
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-12, using Magick to read a malicious SVG file resulted in a DoS attack. Version 7.1.2-12 fixes the issue.
ImageMagick is free and open-source software used for editing and mani ...