Heap-based buffer overflow in GraphicsMagick - CVE-2019-11008

 

Heap-based buffer overflow in GraphicsMagick - CVE-2019-11008

Published: April 28, 2019


Vulnerability identifier: #VU18366
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-11008
CWE-ID: CWE-122
Exploitation vector: Local 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 within the WriteXWDImage() function in coders/xwd.c. A remote attacker can create a crafted XWD file, pass it to the application, trigger heap-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
SUSE Linux
Opensuse
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-11008

Install update from vendor's website.

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