CVE-2017-8291
Artifex Ghostscript Type Confusion Vulnerability
- Published
- Apr 27, 2017
- Updated
- Oct 21, 2025
- Assigning CNA
- mitre
- Evidence observed
- May 2, 2017
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 99.9%
- Model date
- Oct 13, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
CISA Known Exploited
This CVE appears in the CISA Known Exploited Vulnerabilities catalog.
Summary
Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile (%pipe%" substring in a crafted .eps document that is an input to the gs program, as exploited in the wild in April 2017.
Sources
python/PIL-CVE-2017-8291
Python PIL/Pillow Remote Command Execution (GhostButt / CVE-2017-8291)
Vulhub vulnerability labsDeclared conditions
- lab image version: vulhub/ghostscript:9.21-with-flask(python/PIL-CVE-2017-8291/docker-compose.yml:services.web.image)
modules/exploits/unix/fileformat/ghostscript_type_confusion.rb
Metasploit Framework modulesDeclared conditions
- platform: Unix($.exploit_unix/fileformat/ghostscript_type_confusion.platform)
- verification: check_not_declared($.exploit_unix/fileformat/ghostscript_type_confusion.check)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.