Out-of-bounds read in ImageMagick and Debian Linux - CVE-2017-6500
Published: March 6, 2017 / Updated: August 8, 2020
Vulnerability identifier: #VU39583
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-2017-6500
CWE-ID: CWE-125
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.
An issue was discovered in ImageMagick 6.9.7. A specially crafted sun file triggers a heap-based buffer over-read.
Affected software
ImageMagick
Debian Linux
Ubuntu
imagemagick (Ubuntu package)
libmagick++4 (Ubuntu package)
libmagickcore4-extra (Ubuntu package)
libmagickcore4 (Ubuntu package)
libmagickcore5 (Ubuntu package)
libmagick++5 (Ubuntu package)
libmagickcore5-extra (Ubuntu package)
libmagickcore-6.q16-2 (Ubuntu package)
libmagickcore-6.q16-2-extra (Ubuntu package)
libmagick++-6.q16-5v5 (Ubuntu package)
imagemagick-6.q16 (Ubuntu package)
Debian Linux
Ubuntu
imagemagick (Ubuntu package)
libmagick++4 (Ubuntu package)
libmagickcore4-extra (Ubuntu package)
libmagickcore4 (Ubuntu package)
libmagickcore5 (Ubuntu package)
libmagick++5 (Ubuntu package)
libmagickcore5-extra (Ubuntu package)
libmagickcore-6.q16-2 (Ubuntu package)
libmagickcore-6.q16-2-extra (Ubuntu package)
libmagick++-6.q16-5v5 (Ubuntu package)
imagemagick-6.q16 (Ubuntu package)
How to mitigate CVE-2017-6500
Install update from vendor's website.
imagemagick (Ubuntu package) - addressed in versions 8:6.6.9.7-5ubuntu3.9, 8:6.7.7.10-6ubuntu3.6, 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
libmagick++4 (Ubuntu package) - update to 8:6.6.9.7-5ubuntu3.9
libmagickcore4-extra (Ubuntu package) - update to 8:6.6.9.7-5ubuntu3.9
libmagickcore4 (Ubuntu package) - update to 8:6.6.9.7-5ubuntu3.9
libmagickcore5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.6
libmagick++5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.6
libmagickcore5-extra (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.6
libmagickcore-6.q16-2 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
libmagickcore-6.q16-2-extra (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
libmagick++-6.q16-5v5 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
imagemagick-6.q16 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
libmagick++4 (Ubuntu package) - update to 8:6.6.9.7-5ubuntu3.9
libmagickcore4-extra (Ubuntu package) - update to 8:6.6.9.7-5ubuntu3.9
libmagickcore4 (Ubuntu package) - update to 8:6.6.9.7-5ubuntu3.9
libmagickcore5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.6
libmagick++5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.6
libmagickcore5-extra (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.6
libmagickcore-6.q16-2 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
libmagickcore-6.q16-2-extra (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
libmagick++-6.q16-5v5 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
imagemagick-6.q16 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.6, 8:6.8.9.9-7ubuntu8.5
External References
- http://www.debian.org/security/2017/dsa-3808
- http://www.securityfocus.com/bid/96592
- https://bugs.debian.org/856879
- https://github.com/ImageMagick/ImageMagick/commit/3007531bfd326c5c1e29cd41d2cd80c166de8528
- https://github.com/ImageMagick/ImageMagick/issues/375
- https://github.com/ImageMagick/ImageMagick/issues/376