Integer overflow in ImageMagick - CVE-2017-14173

 

Integer overflow in ImageMagick - CVE-2017-14173

Published: December 27, 2017


Vulnerability identifier: #VU9801
CSH Severity: Low
CVSS v4.0: 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/E:U/U:Clear
CVE-ID: CVE-2017-14173
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: ImageMagick.org
Affected software:
ImageMagick

Detailed vulnerability description

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

The weakness exists due to integer overflow in the function ReadTXTImage() in coders/txt.c that may occur for the addition operation "GetQuantumRange(depth)+1" when "depth" is large, producing a smaller value than expected. A remote attacker can provide a specially crafted TXT file that claims a very large "max_value" value, trigger infinite loop and cause the system to crash.

Successful exploitation of the vulnerability results in denial of service.

How to mitigate CVE-2017-14173

Install update from vendor's website.

Sources