Stack-based buffer overflow in GraphicsMagick - CVE-2019-11005

 

Stack-based buffer overflow in GraphicsMagick - CVE-2019-11005

Published: April 28, 2019 / Updated: June 17, 2019


Vulnerability identifier: #VU18363
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-11005
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing a quoted font family value within the SVGStartElement() function in coders/svg.c in SVG reader. A remote unauthenticated attacker can create a specially crafted image, pass it to the affected application, trigger stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

GraphicsMagick
Debian Linux
Fedora
Opensuse
SUSE Linux
openEuler
graphicsmagick (Ubuntu package)
graphicsmagick (Debian package)
GraphicsMagick
GraphicsMagick-help
GraphicsMagick-c++-devel
GraphicsMagick-c++
GraphicsMagick-debuginfo
GraphicsMagick-perl
GraphicsMagick-debugsource
GraphicsMagick-devel

How to mitigate CVE-2019-11005

Update to version 1.3.32 or 1.4 snapshot-20190322 Q8.

GraphicsMagick - update to 1.3.32
graphicsmagick (Ubuntu package) - update to 1.3.28-2ubuntu0.1
graphicsmagick (Debian package) - addressed in versions 1.3.30+hg15796-1~deb9u3, 1.4~hg15978-1+deb10u1
GraphicsMagick - update to 1.3.30-9
GraphicsMagick-help - update to 1.3.30-9
GraphicsMagick-c++-devel - update to 1.3.30-9
GraphicsMagick-c++ - update to 1.3.30-9
GraphicsMagick-debuginfo - update to 1.3.30-9
GraphicsMagick-perl - update to 1.3.30-9
GraphicsMagick-debugsource - update to 1.3.30-9
GraphicsMagick-devel - update to 1.3.30-9
GraphicsMagick - addressed in versions 1.3.34-1.el7, 1.3.34-1.el8

External References

Related Security Bulletins