Improper input validation in GraphicsMagick - CVE-2018-20189

 

Improper input validation in GraphicsMagick - CVE-2018-20189

Published: December 17, 2018 / Updated: June 17, 2019


Vulnerability identifier: #VU16585
CSH Severity: Low
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-20189
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause DoS condition on the target system.

The vulnerability exists due to an error in the ReadDIBImage function of coders/dib.c when processing malicious input in DIB reader. A remote attacker can cause the service to crash via a dib file that is crafted to appear with direct pixel values and also colormapping (which is not available beyond 8-bits/sample), and therefore lacks indexes initialization.


Affected software

GraphicsMagick
Debian Linux
Fedora
Ubuntu
Opensuse
graphicsmagick (Ubuntu package)
graphicsmagick (Alpine package)
libgraphicsmagick-q16-3 (Ubuntu package)
libgraphicsmagick3 (Ubuntu package)
graphicsmagick (Debian package)
GraphicsMagick

How to mitigate CVE-2018-20189

Install update from vendor's website.

GraphicsMagick - update to 1.3.32
graphicsmagick (Ubuntu package) - addressed in versions Ubuntu Pro, 1.3.28-2ubuntu0.1, 1.4+really1.3.35-1ubuntu0.1
graphicsmagick (Alpine package) - update to 1.3.35-r0
libgraphicsmagick-q16-3 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.4+really1.3.35-1ubuntu0.1
libgraphicsmagick3 (Ubuntu package) - update to Ubuntu Pro
graphicsmagick (Debian package) - addressed in versions 1.3.30+hg15796-1~deb9u3, 1.4~hg15978-1+deb10u1
GraphicsMagick - addressed in versions 1.3.34-1.el7, 1.3.34-1.el8

External References

Related Security Bulletins