CVE-2020-29599
Description
A shell injection vulnerability in ImageMagick's -authenticate option allows arbitrary command execution when processing password-protected PDF files.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A shell injection vulnerability in ImageMagick's -authenticate option allows arbitrary command execution when processing password-protected PDF files.
Vulnerability
ImageMagick before version 6.9.11-40 and 7.x before version 7.0.10-40 contains a vulnerability in the -authenticate option used for setting a password for password-protected PDF files. The user-supplied password is not properly escaped or sanitized in coders/pdf.c, allowing injection of arbitrary shell commands into the external command invoked by ImageMagick when processing such PDF files[1][3].
Exploitation
An attacker can exploit this vulnerability by crafting a PDF file with a malicious password and enticing a user to open it with ImageMagick using the -authenticate option. The attacker does not need prior authentication or special privileges; they only need to convince the victim to process the file (e.g., via email or web download). The injected shell commands are executed within the context of the image conversion process, which typically uses external programs like Ghostscript to handle PDF files[1][2].
Impact
Successful exploitation allows arbitrary command execution with the privileges of the user running ImageMagick. This can lead to full compromise of the affected system, including data exfiltration, installation of malware, or denial of service. The vulnerability affects both ImageMagick 6.x and 7.x series[1][2].
Mitigation
The vulnerability has been patched in ImageMagick version 6.9.11-40 and 7.0.10-40. Users should upgrade to these versions or later. Gentoo Linux has released updated packages (>=media-gfx/imagemagick-6.9.11.41-r1 for ImageMagick 6 and >=media-gfx/imagemagick-7.0.10.41-r1 for ImageMagick 7). As a workaround, users should avoid processing untrusted PDF files with the -authenticate option until patched[1][2][3].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
21- ImageMagick/ImageMagickdescription
- Range: <6.9.11-40, <7.0.10-40
- osv-coords19 versionspkg:rpm/opensuse/ImageMagick&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/ImageMagick&distro=openSUSE%20Leap%2015.2pkg:rpm/suse/ImageMagick&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP1pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP1pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/ImageMagick&distro=SUSE%20Manager%20Proxy%204.0pkg:rpm/suse/ImageMagick&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.0pkg:rpm/suse/ImageMagick&distro=SUSE%20Manager%20Server%204.0
< 7.0.7.34-lp151.7.26.1+ 18 more
- (no CPE)range: < 7.0.7.34-lp151.7.26.1
- (no CPE)range: < 7.0.7.34-lp152.12.9.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-10.9.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-10.9.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
- (no CPE)range: < 7.0.7.34-3.90.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
4- security.gentoo.org/glsa/202101-36mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2021/01/msg00010.htmlmitremailing-list
- lists.debian.org/debian-lts-announce/2023/03/msg00008.htmlmitremailing-list
- insert-script.blogspot.com/2020/11/imagemagick-shell-injection-via-pdf.htmlmitre
News mentions
0No linked articles in our index yet.