Infinite loop in GraphicsMagick - CVE-2018-5685

 

Infinite loop in GraphicsMagick - CVE-2018-5685

Published: January 14, 2018 / Updated: August 3, 2020


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

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform a denial of service (DoS) attack.

In GraphicsMagick 1.3.27, there is an infinite loop and application hang in the ReadBMPImage function (coders/bmp.c). Remote attackers could leverage this vulnerability to cause a denial of service via an image file with a crafted bit-field mask value.


Affected software

GraphicsMagick
Amazon Linux AMI
Fedora
Ubuntu
graphicsmagick (Alpine package)
libgraphicsmagick-q16-3 (Ubuntu package)
graphicsmagick (Ubuntu package)
libgraphicsmagick3 (Ubuntu package)
GraphicsMagick

How to mitigate CVE-2018-5685

Install update from vendor's website.

GraphicsMagick - update to 1.3.28
libgraphicsmagick-q16-3 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.4+really1.3.35-1ubuntu0.1
graphicsmagick (Ubuntu package) - addressed in versions Ubuntu Pro, 1.4+really1.3.35-1ubuntu0.1
libgraphicsmagick3 (Ubuntu package) - update to Ubuntu Pro
GraphicsMagick - addressed in versions 1.3.28-1.el6, 1.3.28-1.el7

External References

Related Security Bulletins