Skip to content
OpenAdvisories
Unscored Public exploit CVE-2023-43115 EUVD-2023-47536GHSA-9p55-888j-qxrh

In Artifex Ghostscript through 10.01.2, gdevijs.c in GhostPDL can lead to remote code execution via crafted PostScript documents because th…

Published Sep 18, 2023 · Updated Aug 2, 2024 · Assigned by mitre

Description

In Artifex Ghostscript through 10.01.2, gdevijs.c in GhostPDL can lead to remote code execution via crafted PostScript documents because they can switch to the IJS device, or change the IjsServer parameter, after SAFER has been activated. NOTE: it is a documented risk that the IJS server can be specified on a gs command line (the IJS device inherently must execute a command to start the IJS server).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 10.02.0~dfsg-1 —
Debian 13 ghostscript 10.02.0~dfsg-1 —
Debian 12 ghostscript 10.0.0~dfsg-11+deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS ghostscript 9.55.0~dfsg1-0ubuntu5.5 USN-6433-1
Ubuntu 20.04 LTS ghostscript 9.50~dfsg-5ubuntu4.11 USN-6433-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS ghostscript No fix yet —
Ubuntu Pro 16.04 LTS ghostscript No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 libgs +7 9.54.0-11.el9_2 RHSA-2023:6732, RHSA-2023:6265
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 EUS libgs +7 9.54.0-7.el9_0.2 RHSA-2023:5868

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libgs +7 9.54.0-11.el9_2 ALSA-2023:6732, ALSA-2023:6265
ReleasePackageFixed inAdvisory
SLES 15 SP5 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLES 15 SP4 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLES 15 SP3 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLES 15 SP2 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLES 15 SP1 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 ghostscript 9.52-23.60.1 SUSE-SU-2023:3938-1
SLES for SAP 15 SP3 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLES for SAP 15 SP2 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLES for SAP 15 SP1 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLES for SAP 12 SP5 ghostscript 9.52-23.60.1 SUSE-SU-2023:3938-1
SLE HPC 15 SP3 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLE HPC 15 SP2 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SLE HPC 15 SP1 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SUSE Manager Server 4.2 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SUSE Manager Proxy 4.2 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
SUSE Enterprise Storage 7.1 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ghostscript 9.56.1-6.1 openSUSE-SU-2024:13247-1
openSUSE Tumbleweed python-ocrmypdf 17.4.2-1.1 openSUSE-SU-2026:10855-1
openSUSE Leap 15.5 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
openSUSE Leap 15.4 ghostscript 9.52-150000.173.2 SUSE-SU-2023:3984-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ghostscript 10.02.0-r0 —
Alpine v3.23 ghostscript 10.02.0-r0 —
Alpine v3.22 ghostscript 10.02.0-r0 —
Alpine v3.21 ghostscript 10.02.0-r0 —
Alpine v3.20 ghostscript 10.02.0-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 ghostscript 10.02.0-r0 —
Alpine v3.18 ghostscript 10.02.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libgs +8 9.56.1-7.amzn2023.0.4 ALAS2023-2023-362

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libgs +7 9.54.0-11.el9_2 ELSA-2023-6732, ELSA-2023-6265

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ghostscript 10.02.0-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 14

References