CVE-2020-29599 Command injection in n/a
Attackers can execute arbitrary shell commands by injecting malicious input into the password field when processing PDF files with ImageMagick.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-29599?
CVE-2020-29599 is a high-severity command injection vulnerability in Debian Debian Linux, published on 7 Dec 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-91
Which versions are affected by CVE-2020-29599?
It affects 2 products.
Linux distribution packages (28)
ImageMagick Red Hat:enterprise_linux:7::client | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-c++ Red Hat:enterprise_linux:7::client | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-c++-devel Red Hat:enterprise_linux:7::client | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-debuginfo Red Hat:enterprise_linux:7::client | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-devel Red Hat:enterprise_linux:7::client | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-doc Red Hat:enterprise_linux:7::client | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-perl Red Hat:enterprise_linux:7::client | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick Red Hat:enterprise_linux:7::computenode | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-c++ Red Hat:enterprise_linux:7::computenode | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-c++-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-doc Red Hat:enterprise_linux:7::computenode | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-perl Red Hat:enterprise_linux:7::computenode | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick Red Hat:enterprise_linux:7::server | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-c++ Red Hat:enterprise_linux:7::server | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-c++-devel Red Hat:enterprise_linux:7::server | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-devel Red Hat:enterprise_linux:7::server | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-doc Red Hat:enterprise_linux:7::server | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-perl Red Hat:enterprise_linux:7::server | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick Red Hat:enterprise_linux:7::workstation | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-c++ Red Hat:enterprise_linux:7::workstation | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-c++-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-doc Red Hat:enterprise_linux:7::workstation | All versions | 0:6.9.10.68-5.el7_9 |
ImageMagick-perl Red Hat:enterprise_linux:7::workstation | All versions | 0:6.9.10.68-5.el7_9 |
Products include Debian Debian Linux, Imagemagick Imagemagick.
How do I fix CVE-2020-29599?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2020-29599 being exploited?
There is no known exploitation of CVE-2020-29599 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as CLSA-2021-1617641265, DEBIAN-CVE-2020-29599, GHSA-685x-r4m9-ffxr, JLSEC-2026-876, RHSA-2021:0024, UBUNTU-CVE-2020-29599.