CVE-2020-29599: ImageMagick - Command Injection
- Cve: CVE-2020-29599
- Name: ImageMagick - Command Injection
- 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.
- Impact: Attackers can execute arbitrary shell commands on the host system, potentially leading to remote code execution.
- Remediation: Update to version 6.9.11-40, 7.0.10-40 or later versions.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs to control the password input
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.07508
- Epss percentile: 0.94635
- Assignee: [email protected]
- Published at: 2020-12-07T20:15:12Z
- Age in days: 2178
- Modified at: 2026-06-17T03:11:30Z
- Patch available: yes
- Public exploits total: 2
- References total: 5
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-29599
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-91 | XML Injection |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/ImageMagick/ImageMagick/discussions/2851 | nvd | 2020-12-07 |
| https://github.com/lnwza0x0a/CVE-2020-29599 | poc-in-github | 2022-01-28 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/ImageMagick/ImageMagick/discussions/2851 | Exploit, Third Party Advisory |
| https://insert-script.blogspot.com/2020/11/imagemagick-shell-injection-via-pdf.html | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html | Mailing List, Third Party Advisory |
| https://security.gentoo.org/glsa/202101-36 | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| imagemagick:imagemagick | >= 6.9.8-1, < 6.9.11-40; >= 7.0.5-3, < 7.0.10-40 | no | nvd | /v1/products/imagemagick/imagemagick |
| debian:debian_linux | = 9.0 | no | nvd | /v1/products/debian/debian_linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2020-12-07
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports