#VU30724 Heap-based buffer overflow in ImageMagick


Published: 2019-10-14 | Updated: 2020-07-17

Vulnerability identifier: #VU30724

Vulnerability risk: Medium

CVSSv3.1: 6.1 [CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2019-17540

CWE-ID: CWE-122

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
ImageMagick
Client/Desktop applications / Multimedia software

Vendor: ImageMagick.org

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the ReadPSInfo in coders/ps.c. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation
Update to version 7.0.8-54.

Vulnerable software versions

ImageMagick: 7.0.0-0, 7.0.1-0 - 7.0.1-10, 7.0.2-0 - 7.0.2-10, 7.0.3-0 - 7.0.3-10, 7.0.4-0 - 7.0.4-10, 7.0.5-0 - 7.0.5-10, 7.0.6-0 - 7.0.6-10, 7.0.7-0 - 7.0.7.7, 7.0.8-0 - 7.0.8-53


External links
http://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15826
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942578
http://github.com/ImageMagick/ImageMagick/compare/7.0.8-53...7.0.8-54
http://github.com/ImageMagick/ImageMagick/compare/master@%7B2019-07-15%7D...master@%7B2019-07-17%7D
http://security-tracker.debian.org/tracker/CVE-2019-17540


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability