Out-of-bounds write in GraphicsMagick - CVE-2019-19951

 

Out-of-bounds write in GraphicsMagick - CVE-2019-19951

Published: December 24, 2019 / Updated: August 8, 2020


Vulnerability identifier: #VU34941
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-19951
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

In GraphicsMagick 1.4 snapshot-20190423 Q8, there is a heap-based buffer overflow in the function ImportRLEPixels of coders/miff.c.


Affected software

GraphicsMagick
Debian Linux
Ubuntu
SUSE Linux
Opensuse
libgraphicsmagick3 (Ubuntu package)
libgraphicsmagick++3 (Ubuntu package)
graphicsmagick (Ubuntu package)
libgraphicsmagick-q16-3 (Ubuntu package)
libgraphicsmagick++-q16-12 (Ubuntu package)
graphicsmagick (Debian package)

How to mitigate CVE-2019-19951

Install update from vendor's website.

libgraphicsmagick3 (Ubuntu package) - update to 1.3.18-1ubuntu3.1+esm7
libgraphicsmagick++3 (Ubuntu package) - update to 1.3.18-1ubuntu3.1+esm7
graphicsmagick (Ubuntu package) - addressed in versions 1.3.18-1ubuntu3.1+esm7, 1.3.23-1ubuntu0.6+esm1, 1.3.28-2ubuntu0.1+esm1
libgraphicsmagick-q16-3 (Ubuntu package) - addressed in versions 1.3.23-1ubuntu0.6+esm1, 1.3.28-2ubuntu0.1+esm1
libgraphicsmagick++-q16-12 (Ubuntu package) - addressed in versions 1.3.23-1ubuntu0.6+esm1, 1.3.28-2ubuntu0.1+esm1
graphicsmagick (Debian package) - addressed in versions 1.3.30+hg15796-1~deb9u3, 1.4~hg15978-1+deb10u1

External References

Related Security Bulletins