{"id":"CVE-2017-8291","kind":"vulnerability","aliases":["CVE-2017-8291"],"related":[],"title":"Artifex Ghostscript: Artifex Ghostscript Type Confusion Vulnerability","description":"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.","summary":"Ghostscript has a type confusion bug in its handling of .rsdparams files that lets a crafted PostScript file bypass the -dSAFER sandbox. An attacker who can get Ghostscript to process a malicious file can run arbitrary commands on the host.","severity":"high","cvss":7.8,"epss":0.96968,"exploited":true,"exploited_at":"2022-05-24T00:00:00+00:00","products":[{"name":"Artifex Ghostscript","fixed":[],"affected":"","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["document-conversion","exploited","ghostscript","linux","package","self-hosted"],"not_affected_if":["no-untrusted-input","static-export"],"how_to_check":"Run gs --version and compare against the fixed version named in the vendor advisory.\nSearch for places that pass untrusted files to gs, such as document converters, thumbnailers or upload pipelines.","fix":"Upgrade Ghostscript to the version the vendor lists as fixed for CVE-2017-8291.","status":"open","published_at":"2017-04-27T01:59:02+00:00","first_seen_at":"2026-10-23T19:11:52+00:00","triaged_at":"2026-10-23T21:15:57+00:00","updated_at":"2026-10-23T21:57:35+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-23T21:15:57Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade Ghostscript to the version the vendor lists as fixed for CVE-2017-8291.\nunknown","reach":"network","impact":"high","summary":"Ghostscript has a type confusion bug in its handling of .rsdparams files that lets a crafted PostScript file bypass the -dSAFER sandbox. An attacker who can get Ghostscript to process a malicious file can run arbitrary commands on the host.","category":"package","who_cares":["ghostscript","self-hosted","document-conversion","linux"],"confidence":0.6,"needs_auth":"no","worst_case":"Attacker runs arbitrary commands on the server processing a crafted file","analyst_note":"Sources do not list affected or fixed versions; confirm exact fixed release from the Artifex advisory or NVD entry for CVE-2017-8291.","how_to_check":"Run gs --version and compare against the fixed version named in the vendor advisory.\nSearch for places that pass untrusted files to gs, such as document converters, thumbnailers or upload pipelines.\nunknown","needs_analyst":true,"not_affected_if":["no-untrusted-input","static-export"],"user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.0005,"input_tokens":2830,"output_tokens":434,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-04':70C '-2017':9A,12A '-26':71C '-8291':10A,13A '/outputfile':85C '2017':69C,108C 'allow':72C 'april':107C 'arbitrari':61B 'artifex':1A,3A,14A,66C 'attack':49B 'bug':31B 'bypass':44B,74C 'command':62B,77C 'confus':6A,30B,82C 'convers':18B 'craft':41B,90C 'cve':8A,11A 'document':17B,92C 'document-convers':16B 'dsafer':46B,73C 'ep':91C 'execut':78C 'exploit':19B,102C 'file':37B,43B,58B 'get':52B 'ghostscript':2A,4A,15A,20B,26B,53B,67C 'gs':99C 'handl':34B 'host':25B,65B 'input':96C 'let':39B 'linux':21B 'malici':57B 'packag':22B 'pipe':86C 'postscript':42B 'process':55B 'program':100C 'remot':76C 'rsdparam':36B,80C 'run':60B 'sandbox':47B 'self':24B 'self-host':23B 'substr':87C 'type':5A,29B,81C 'via':79C 'vulner':7A 'wild':105C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2017-04-27T01:59:02+00:00","kev":{"dateAdded":"2022-05-24","dueDate":"2022-06-14","requiredAction":"Apply updates per vendor instructions.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cvss_by":"nvd@nist.gov","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2017-8291","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2017-8291","severity":null,"published_at":"2022-05-24T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:52+00:00","fetched_at":"2026-10-25T17:39:57+00:00","note":null},{"source":"epss","external_id":"CVE-2017-8291","url":"https://api.first.org/data/v1/epss?cve=CVE-2017-8291","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-23T19:13:45+00:00","fetched_at":"2026-10-23T19:13:45+00:00","note":null},{"source":"nvd","external_id":"CVE-2017-8291","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-8291","severity":null,"published_at":"2017-04-27T01:59:02+00:00","modified_at":"2026-06-17T01:26:08+00:00","first_seen_at":"2026-10-23T21:57:35+00:00","fetched_at":"2026-10-23T21:57:35+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}