Imagemagick · Imagemagick · CVE-2020-29599
**Name of the Vulnerable Software and Affected Versions**
ImageMagick versions 6.9.11-40 and earlier, 7.x versions prior to 7.0.10-40
**Description**
The issue is related to the -authenticate option in ImageMagick, which is used for setting passwords for password-protected PDF files. The user-controlled password is not properly escaped or sanitized, allowing an attacker to inject additional shell commands via coders/pdf.c. This could lead to unauthorized access to confidential data, disruption of data integrity, and denial of service.
**Recommendations**
For ImageMagick versions 6.9.11-40 and earlier: update to version 6.9.11-40 or later.
For 7.x versions prior to 7.0.10-40: update to version 7.0.10-40 or later.
As a temporary workaround, consider disabling the use of the -authenticate option until a patch is available. Restrict access to the coders/pdf.c module to minimize the risk of exploitation. Avoid using user-controlled passwords with the -authenticate option until the issue is resolved.