XPath Injection in Imagemagick
CVE-2020-29599
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.075, 94.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Imagemagick
- Debian Linux — versions 9.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- lnwza0x0a/CVE-2020-29599 (1 star, last pushed 2022-01-28)
- coco0x0a/CVE-2020-29599
Also mentioned in 9 other repositories (ARPSyndicate/cvemon, bakery312/Vulhub-Reproduce, barrracud4/image-upload-exploits, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- insert-script.blogspot.com/2020/11/imagemagick-shell-injection-via-pdf.html (Third Party Advisory)
- github.com/ImageMagick/ImageMagick/discussions/2851 (Exploit, Third Party Advisory)
- [debian-lts-announce] 20210112 [SECURITY] [DLA 2523-1] imagemagick security update (mailing-list, Mailing List, Third Party Advisory)
- GLSA-202101-36 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20230311 [SECURITY] [DLA 3357-1] imagemagick security update (mailing-list)
This CVE has public exploit evidence. See the latest CVEs with public exploits.