CVE-2020-29599
ImageMagick: Shell injection via PDF password could result in arbitrary code execution
Overview
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.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-91
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | ImageMagick_jll | <6.9.12+0 | 6.9.12+0 |
Open a package to see all its vulnerabilities.
Operating systems · 20 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | imagemagick +5 | 6.9.10.68-5.el7_9 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | imagemagick +5 | 0:6.9.10.68-5.el7_9 | RHSA-2021:0024 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | imagemagick | 7.0.10.42-r0 |
| 3.23 | imagemagick | 7.0.10.42-r0 |
| 3.24 | imagemagick | 7.0.10.42-r0 |
| edge | imagemagick | 7.0.10.42-r0 |
debian 6 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | imagemagick | 8:6.9.10.23+dfsg-2.1+deb10u2 |
| 11 | imagemagick | 8:6.9.11.57+dfsg-1 |
| 12 | imagemagick | 8:6.9.11.57+dfsg-1 |
| 13 | imagemagick | 8:6.9.11.57+dfsg-1 |
| 14 | imagemagick | 8:6.9.11.57+dfsg-1 |
| 9 | imagemagick | 8:6.9.7.4+dfsg-11+deb9u11 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| imagemagick | 8:6.9.11.57+dfsg-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-imagemagick | 8:6.9.11.57+dfsg-1 |
| 12 | rootio-imagemagick | 8:6.9.11.57+dfsg-1 |
| 13 | rootio-imagemagick | 8:6.9.11.57+dfsg-1 |
seal Red Hat 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | imagemagick +1 | 6.9.10.68-6.el7_9+sp999 |
| 8 | imagemagick +1 | 6.9.13.25-1.el8+sp999 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 20.04 | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.9 |
| 20.04-ESM | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.9 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-29599
- github.com https://github.com/ImageMagick/ImageMagick/discussions/2851
- insert-script.blogspot.com https://insert-script.blogspot.com/2020/11/imagemagick-shell-injection-via-pdf.html
- linux.oracle.com https://linux.oracle.com/cve/CVE-2020-29599.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-0024.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/01/msg00010.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-29599
- security.gentoo.org https://security.gentoo.org/glsa/202101-36
- ubuntu.com https://ubuntu.com/security/notices/USN-6200-1
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.