Vulnerability identifier: #VU48940
Vulnerability risk: High
CVSSv3.1: 8.8 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-91
Exploitation vector: Network
Exploit availability: Yes
Vulnerable software:
ImageMagick
Client/Desktop applications /
Multimedia software
Vendor: ImageMagick.org
Description
The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.
ImageMagick before 6.9.11-40 and 7.x before 7.0.10-40 mishandles the -authenticate option, which allows setting a password for password-protected PDF files. The user-controlled password was not properly escaped/sanitized and it was therefore possible to inject additional shell commands via coders/pdf.c.
Mitigation
Install update from vendor's website.
Vulnerable software versions
ImageMagick: 6.9.0-0 - 6.9.0-10, 6.9.1-0 - 6.9.1-10, 6.9.2-0 - 6.9.2-10, 6.9.3-0 - 6.9.3-10, 6.9.4-0 - 6.9.4-9, 6.9.5-0 - 6.9.5-8, 6.9.6-2 - 6.9.6.6, 6.9.7 - 6.9.7-10, 6.9.8-10, 6.9.9-0 - 6.9.9-4, 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 - 7.0.6-10, 7.0.7 - 7.0.7.7, 7.0.8-0 - 7.0.8-68, 7.0.9 - 7.0.9-27, 7.0.10-0 - 7.0.10-39
External links
http://github.com/ImageMagick/ImageMagick/discussions/2851
http://insert-script.blogspot.com/2020/11/imagemagick-shell-injection-via-pdf.html
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.