CVE-2018-17961

HIGH

Artifex Ghostscript < 9.25 - Sandbox Protection Bypass via Error Handler Setup

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2018-17961. PoCs published by Google Security Research, matlink.

AI-analyzed exploit summary This exploit leverages a vulnerability in Ghostscript's error handling mechanism to bypass the -dSAFER sandbox and achieve arbitrary file system access. It manipulates the operand stack to expose the `forceput` operator, allowing the attacker to disable security restrictions and modify files like `~/.bashrc`.

Description

Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving errorhandler setup. NOTE: this issue exists because of an incomplete fix for CVE-2018-17183.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Google Security Research · textlocallinux
https://www.exploit-db.com/exploits/45573

This exploit leverages a vulnerability in Ghostscript's error handling mechanism to bypass the -dSAFER sandbox and achieve arbitrary file system access. It manipulates the operand stack to expose the `forceput` operator, allowing the attacker to disable security restrictions and modify files like `~/.bashrc`.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ghostscript (versions up to 9.26)
No auth needed
Prerequisites: Victim must open a malicious PostScript file (e.g., via Evince, ImageMagick, or Nautilus thumbnailer)
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec STUB 2 stars
by matlink · poc
https://github.com/matlink/CVE-2018-17961

The repository contains only a README with high-level steps for exploiting CVE-2018-17961 but lacks actual exploit code or technical details. It references a Docker-based setup and an Evince (PDF viewer) exploit via a PostScript file.

Classification
Stub 30%
Attack Type
Rce
Complexity
Moderate
Reliability
Theoretical
Target: Evince (GNOME Document Viewer) versions prior to fix for CVE-2018-17961
No auth needed
Prerequisites: Docker environment · Evince installed in container · PostScript file with exploit payload
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (11)

Core 11
Core References
Exploit, Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2018/10/09/4
Permissions Required, Third Party Advisory x_refsource_confirm
https://bugs.ghostscript.com/show_bug.cgi?id=699816
Third Party Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:3834
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3803-1/
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2018/dsa-4336
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/10/msg00013.html
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/45573/
Patch, Third Party Advisory x_refsource_misc
https://bugs.chromium.org/p/project-zero/issues/detail?id=1682&desc=2

Scores

CVSS v3 8.6
EPSS 0.0998
EPSS Percentile 95.0%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Details

CWE
CWE-209
Status published
Products (13)
artifex/ghostscript < 9.25
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 18.04
canonical/ubuntu_linux 18.10
debian/debian_linux 8.0
debian/debian_linux 9.0
redhat/enterprise_linux_desktop 7.0
redhat/enterprise_linux_server 7.0
redhat/enterprise_linux_server_aus 7.6
... and 3 more
Published Oct 15, 2018
Tracked Since Feb 18, 2026