XML injection in ImageMagick - CVE-2020-29599

 

XML injection in ImageMagick - CVE-2020-29599

Published: December 13, 2020 / Updated: February 23, 2022


Vulnerability identifier: #VU48940
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2020-29599
CWE-ID: CWE-91
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: ImageMagick.org
Affected software:
ImageMagick

Detailed vulnerability 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.


How to mitigate CVE-2020-29599

Install update from vendor's website.

Sources