Known Exploited Vulnerability
7.8
HIGH
CVE-2017-8291
Artifex Ghostscript Type Confusion Vulnerability - [Actively Exploited]
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.

INFO

Published Date :

April 27, 2017, 1:59 a.m.

Last Modified :

March 14, 2025, 8:34 p.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
CISA Notification
CISA KEV (Known Exploited Vulnerabilities)

For the benefit of the cybersecurity community and network defenders—and to help every organization better manage vulnerabilities and keep pace with threat activity—CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild.

Description :

Artifex Ghostscript allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile.

Required Action :

Apply updates per vendor instructions.

Notes :

https://nvd.nist.gov/vuln/detail/CVE-2017-8291

Public PoC/Exploit Available at Github

CVE-2017-8291 has a 17 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2017-8291 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Redhat enterprise_linux_desktop
2 Redhat enterprise_linux_server
3 Redhat enterprise_linux_workstation
4 Redhat enterprise_linux_server_aus
5 Redhat enterprise_linux_server_tus
6 Redhat enterprise_linux_eus
1 Debian debian_linux
1 Artifex ghostscript
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2017-8291.

URL Resource
http://openwall.com/lists/oss-security/2017/04/28/2 Mailing List Patch Third Party Advisory
http://www.debian.org/security/2017/dsa-3838 Mailing List Third Party Advisory
http://www.securityfocus.com/bid/98476 Broken Link Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2017:1230 Third Party Advisory
https://bugs.ghostscript.com/show_bug.cgi?id=697808 Issue Tracking Third Party Advisory VDB Entry
https://bugzilla.redhat.com/show_bug.cgi?id=1446063 Issue Tracking Patch Third Party Advisory VDB Entry
https://bugzilla.suse.com/show_bug.cgi?id=1036453 Exploit Issue Tracking Third Party Advisory VDB Entry
https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d Broken Link
https://security.gentoo.org/glsa/201708-06 Third Party Advisory
https://www.exploit-db.com/exploits/41955/ Exploit Third Party Advisory VDB Entry
http://openwall.com/lists/oss-security/2017/04/28/2 Mailing List Patch Third Party Advisory
http://www.debian.org/security/2017/dsa-3838 Mailing List Third Party Advisory
http://www.securityfocus.com/bid/98476 Broken Link Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2017:1230 Third Party Advisory
https://bugs.ghostscript.com/show_bug.cgi?id=697808 Issue Tracking Third Party Advisory VDB Entry
https://bugzilla.redhat.com/show_bug.cgi?id=1446063 Issue Tracking Patch Third Party Advisory VDB Entry
https://bugzilla.suse.com/show_bug.cgi?id=1036453 Exploit Issue Tracking Third Party Advisory VDB Entry
https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d Broken Link
https://security.gentoo.org/glsa/201708-06 Third Party Advisory
https://www.exploit-db.com/exploits/41955/ Exploit Third Party Advisory VDB Entry

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

基于Docker-Compose的预构建漏洞环境设计源码 Docker-Compose 漏洞环境 Java Python Shell 该项目是一套基于Docker-Compose的预构建漏洞环境设计源码,涵盖了1684个文件,其中包括405个PNG图像文件、319个Markdown文档、218个YAML配置文件、68个Java源文件、67个Python脚本、62个Shell脚本、53个XML文件、34个PHP文件以及多个Dockerfile。该环境集成了Java, Python, Shell, PHP, HTML, JavaScript, CSS, Ruby等多种编程语言,旨在为安全研究提供易用的漏洞测试平台。

Updated: 4 months ago
0 stars 0 fork 0 watcher
Born at : Nov. 29, 2024, 4:05 a.m. This repo has been linked 127 different CVEs too.

A curated collection of Proof of Concept (PoC) tools, scripts, and techniques designed for red team operations, penetration testing, and cybersecurity research. This repository focuses on providing practical resources for exploring vulnerabilities

attack cybersecurity exp hw penetration-testing poc red-team security-tools vulnerability-poc

Updated: 2 months, 1 week ago
5 stars 2 fork 2 watcher
Born at : Nov. 17, 2024, 11:53 a.m. This repo has been linked 414 different CVEs too.

None

Updated: 3 months, 1 week ago
3 stars 1 fork 1 watcher
Born at : Jan. 26, 2024, 10:07 a.m. This repo has been linked 161 different CVEs too.

None

Updated: 2 years, 2 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 11, 2023, 1:21 p.m. This repo has been linked 1044 different CVEs too.

一个漏洞利用工具仓库

Python PHP Java C Makefile C++ Dockerfile Shell Perl RPC

Updated: 2 years, 11 months ago
0 stars 72 fork 72 watcher
Born at : April 22, 2022, 10:21 a.m. This repo has been linked 48 different CVEs too.

Ostorlab KEV: One-command to detect most remotely known exploitable vulnerabilities. Sourced from CISA KEV, Google's Tsunami, Ostorlab's Asteroid and Bug Bounty programs.

cisa-kev vulnerability 0day cisa exploits

Updated: 2 months, 1 week ago
556 stars 36 fork 36 watcher
Born at : April 19, 2022, 8:58 a.m. This repo has been linked 1248 different CVEs too.

一个Vulhub漏洞复现知识库

vulnerability exploit

Updated: 6 months, 4 weeks ago
448 stars 87 fork 87 watcher
Born at : March 3, 2022, 8:38 a.m. This repo has been linked 171 different CVEs too.

一个漏洞POC知识库 目前数量 1000+

poc

Updated: 1 month, 4 weeks ago
3816 stars 755 fork 755 watcher
Born at : Feb. 20, 2022, 6:43 a.m. This repo has been linked 418 different CVEs too.

Change UploadScanner extension a bit to suit some of the target

HTML Python Perl

Updated: 3 years, 4 months ago
0 stars 0 fork 0 watcher
Born at : Nov. 9, 2021, 2:54 p.m. This repo has been linked 7 different CVEs too.

Python library for ReversingLabs services - Python 3 version.

Python

Updated: 3 months, 1 week ago
9 stars 8 fork 8 watcher
Born at : March 17, 2021, 8:12 p.m. This repo has been linked 4 different CVEs too.

None

Updated: 2 months, 4 weeks ago
2 stars 1 fork 1 watcher
Born at : Feb. 6, 2021, 4:29 p.m. This repo has been linked 33 different CVEs too.

None

Updated: 3 months, 3 weeks ago
13 stars 4 fork 4 watcher
Born at : May 25, 2020, 7:51 a.m. This repo has been linked 1029 different CVEs too.

None

HTML Python Perl

Updated: 7 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : March 21, 2020, 1:51 a.m. This repo has been linked 7 different CVEs too.

This repository contains various media files for known attacks on web applications processing media files. Useful for penetration tests and bug bounty.

PostScript

Updated: 2 months ago
324 stars 76 fork 76 watcher
Born at : July 17, 2019, 1:58 p.m. This repo has been linked 18 different CVEs too.

PoC + Docker Environment for Python PIL/Pillow Remote Shell Command Execution via Ghostscript CVE-2018-16509

docker web-security python pillow ghostscript

Dockerfile Python

Updated: 3 months, 4 weeks ago
59 stars 13 fork 13 watcher
Born at : Oct. 15, 2018, 7:44 a.m. This repo has been linked 2 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2017-8291 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2017-8291 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Modified Analysis by [email protected]

    Mar. 14, 2025

    Action Type Old Value New Value
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Feb. 04, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Added CWE CWE-843
  • Modified Analysis by [email protected]

    Jan. 22, 2025

    Action Type Old Value New Value
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://openwall.com/lists/oss-security/2017/04/28/2
    Added Reference http://www.debian.org/security/2017/dsa-3838
    Added Reference http://www.securityfocus.com/bid/98476
    Added Reference https://access.redhat.com/errata/RHSA-2017:1230
    Added Reference https://bugs.ghostscript.com/show_bug.cgi?id=697808
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=1446063
    Added Reference https://bugzilla.suse.com/show_bug.cgi?id=1036453
    Added Reference https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d
    Added Reference https://security.gentoo.org/glsa/201708-06
    Added Reference https://www.exploit-db.com/exploits/41955/
  • Modified Analysis by [email protected]

    Jul. 02, 2024

    Action Type Old Value New Value
    Removed CVSS V3 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type http://www.debian.org/security/2017/dsa-3838 No Types Assigned http://www.debian.org/security/2017/dsa-3838 Mailing List, Third Party Advisory
    Changed Reference Type http://www.securityfocus.com/bid/98476 No Types Assigned http://www.securityfocus.com/bid/98476 Broken Link, Third Party Advisory, VDB Entry
    Changed Reference Type https://access.redhat.com/errata/RHSA-2017:1230 No Types Assigned https://access.redhat.com/errata/RHSA-2017:1230 Third Party Advisory
    Changed Reference Type https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d No Types Assigned https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d Broken Link
    Changed Reference Type https://security.gentoo.org/glsa/201708-06 No Types Assigned https://security.gentoo.org/glsa/201708-06 Third Party Advisory
    Changed Reference Type https://www.exploit-db.com/exploits/41955/ No Types Assigned https://www.exploit-db.com/exploits/41955/ Exploit, Third Party Advisory, VDB Entry
    Removed CWE NIST CWE-704
    Added CWE NIST CWE-843
    Changed CPE Configuration OR *cpe:2.3:a:artifex:ghostscript:*:*:*:*:*:*:*:* versions up to (including) 9.21 OR *cpe:2.3:a:artifex:ghostscript:*:*:*:*:*:*:*:* versions up to (excluding) 9.21
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_eus:7.3:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_eus:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_eus:7.5:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_eus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_eus:7.7:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.3:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_aus:7.7:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.3:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_server_tus:7.7:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* *cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference MITRE https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d [No types assigned]
    Removed Reference MITRE https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=04b37bbce174eed24edec7ad5b920eb93db4d47d
  • CVE Modified by [email protected]

    Jan. 05, 2018

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2017:1230 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 04, 2017

    Action Type Old Value New Value
    Added Reference http://www.debian.org/security/2017/dsa-3838 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 22, 2017

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/201708-06 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 16, 2017

    Action Type Old Value New Value
    Added Reference https://www.exploit-db.com/exploits/41955/ [No Types Assigned]
  • CVE Modified by [email protected]

    May. 27, 2017

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/98476 [No Types Assigned]
  • Initial Analysis by [email protected]

    May. 10, 2017

    Action Type Old Value New Value
    Added CVSS V2 (AV:N/AC:M/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Changed Reference Type https://bugzilla.suse.com/show_bug.cgi?id=1036453 No Types Assigned https://bugzilla.suse.com/show_bug.cgi?id=1036453 Exploit, Issue Tracking, Third Party Advisory, VDB Entry
    Changed Reference Type https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=04b37bbce174eed24edec7ad5b920eb93db4d47d No Types Assigned https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=04b37bbce174eed24edec7ad5b920eb93db4d47d Patch, Vendor Advisory
    Changed Reference Type https://bugs.ghostscript.com/show_bug.cgi?id=697808 No Types Assigned https://bugs.ghostscript.com/show_bug.cgi?id=697808 Issue Tracking, Third Party Advisory, VDB Entry
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=1446063 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=1446063 Issue Tracking, Patch, Third Party Advisory, VDB Entry
    Changed Reference Type http://openwall.com/lists/oss-security/2017/04/28/2 No Types Assigned http://openwall.com/lists/oss-security/2017/04/28/2 Mailing List, Patch, Third Party Advisory
    Added CWE CWE-704
    Added CPE Configuration OR *cpe:2.3:a:artifex:ghostscript:9.21:*:*:*:*:*:*:* (and previous)
  • CVE Modified by [email protected]

    Apr. 29, 2017

    Action Type Old Value New Value
    Added Reference https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=04b37bbce174eed24edec7ad5b920eb93db4d47d [No Types Assigned]
    Added Reference http://openwall.com/lists/oss-security/2017/04/28/2 [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 28, 2017

    Action Type Old Value New Value
    Changed Description Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via 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. 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.
    Added Reference https://bugzilla.suse.com/show_bug.cgi?id=1036453 [No Types Assigned]
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=1446063 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2017-8291 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2017-8291 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

92.25 }} 0.48%

score

0.99721

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability