CVE-2020-29599

high

Description

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.

References

https://github.com/ImageMagick/ImageMagick/discussions/2851

https://insert-script.blogspot.com/2020/11/imagemagick-shell-injection-via-pdf.html

https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html

https://security.gentoo.org/glsa/202101-36

Details

Source: MITRE

Published: 2020-12-07

Updated: 2021-03-29

Type: CWE-91

Risk Information

CVSS v2

Base Score: 6.8

Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 8.6

Severity: MEDIUM

CVSS v3

Base Score: 7.8

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 1.8

Severity: HIGH