Input validation error - CVE-2018-16640

 

Input validation error - CVE-2018-16640

Published: September 7, 2018 / Updated: August 4, 2020


Vulnerability identifier: #VU33730
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-16640
CWE-ID: CWE-20
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.

ImageMagick 7.0.8-5 has a memory leak vulnerability in the function ReadOneJNGImage in coders/png.c.


Affected software

Ubuntu
Opensuse
imagemagick6 (Alpine package)
libmagickcore5 (Ubuntu package)
libmagickcore5-extra (Ubuntu package)
libmagick++5 (Ubuntu package)
imagemagick (Ubuntu package)
libmagickcore-6.q16-2-extra (Ubuntu package)
libmagickcore-6.q16-2 (Ubuntu package)
libmagick++-6.q16-5v5 (Ubuntu package)
imagemagick-6.q16 (Ubuntu package)
libmagickcore-6.q16-3 (Ubuntu package)
libmagick++-6.q16-7 (Ubuntu package)
libmagickcore-6.q16-3-extra (Ubuntu package)

How to mitigate CVE-2018-16640

Install update from vendor's website.

imagemagick6 (Alpine package) - update to 6.9.10.37-r0
libmagickcore5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13
libmagickcore5-extra (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13
libmagick++5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13
imagemagick (Ubuntu package) - addressed in versions 8:6.7.7.10-6ubuntu3.13, 8:6.8.9.9-7ubuntu5.13, 8:6.9.7.4+dfsg-16ubuntu6.4
libmagickcore-6.q16-2-extra (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.13
libmagickcore-6.q16-2 (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.13
libmagick++-6.q16-5v5 (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.13
imagemagick-6.q16 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.13, 8:6.9.7.4+dfsg-16ubuntu6.4
libmagickcore-6.q16-3 (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.4
libmagick++-6.q16-7 (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.4
libmagickcore-6.q16-3-extra (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.4

External References

Related Security Bulletins