CVE-2023-43115
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).
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | ghostscript | Fixed | 9.55.0~dfsg1-0ubuntu5.5 | UBUNTU-CVE-2023-43115 |
| Ubuntu 20.04 | ghostscript | Fixed | 9.50~dfsg-5ubuntu4.11 | UBUNTU-CVE-2023-43115 |
| Ubuntu 18.04 | ghostscript | Fix pending | UBUNTU-CVE-2023-43115 | |
| Ubuntu 16.04 | ghostscript | Will not fix the risk of having programs being executed with IJS server is documented in the start of the devices/gdevijs.c source file and in the online documentation:… | UBUNTU-CVE-2023-43115 | |
| Ubuntu 14.04 | ghostscript | Will not fix the risk of having programs being executed with IJS server is documented in the start of the devices/gdevijs.c source file and in the online documentation:… | ||
| Debian 14 | ghostscript | Fixed | 10.02.0~dfsg-1 | DEBIAN-CVE-2023-43115 |
| Debian 13 | ghostscript | Fixed | 10.02.0~dfsg-1 | DEBIAN-CVE-2023-43115 |
| Debian 12 | ghostscript | Fixed | 10.0.0~dfsg-11+deb12u2 | DEBIAN-CVE-2023-43115 |
| Red Hat Enterprise Linux 9 | ghostscript | Fixed | 0:9.54.0-11.el9_2 | RHSA-2023:6732 |
| Red Hat Enterprise Linux 9 | ghostscript-doc | Fixed | 0:9.54.0-14.el9_3 | RHSA-2023:6265 |
| Red Hat Enterprise Linux 9 | ghostscript-tools-dvipdf | Fixed | 0:9.54.0-14.el9_3 | RHSA-2023:6265 |
| Red Hat Enterprise Linux 9 | ghostscript-tools-fonts | Fixed | 0:9.54.0-14.el9_3 | RHSA-2023:6265 |
| Red Hat Enterprise Linux 9 | ghostscript-tools-printing | Fixed | 0:9.54.0-11.el9_2 | RHSA-2023:6732 |
| Red Hat Enterprise Linux 9 | ghostscript-x11 | Fixed | 0:9.54.0-11.el9_2 | RHSA-2023:6732 |
| Red Hat Enterprise Linux 9 | libgs | Fixed | 0:9.54.0-14.el9_3 | RHSA-2023:6265 |
| Red Hat Enterprise Linux 9 | libgs-devel | Fixed | 0:9.54.0-14.el9_3 | RHSA-2023:6265 |
| Red Hat Enterprise Linux 8 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-dvipdf | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-fonts | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-tools-printing | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript-x11 | Not affected | ||
| Red Hat Enterprise Linux 8 | libgs | Not affected | ||
| Red Hat Enterprise Linux 8 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-cups | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Not affected | ||
| Red Hat Enterprise Linux 7 | libgs | Not affected | ||
| Red Hat Enterprise Linux 7 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | ghostscript | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-gtk | Will not fix Out of support scope | ||
| AlmaLinux 9 | ghostscript | Fixed | 9.54.0-14.el9_3 | ALSA-2023:6265 |
| AlmaLinux 9 | ghostscript-doc | Fixed | 9.54.0-14.el9_3 | ALSA-2023:6265 |
| AlmaLinux 9 | ghostscript-tools-dvipdf | Fixed | 9.54.0-14.el9_3 | ALSA-2023:6265 |
| AlmaLinux 9 | ghostscript-tools-fonts | Fixed | 9.54.0-14.el9_3 | ALSA-2023:6265 |
| AlmaLinux 9 | ghostscript-tools-printing | Fixed | 9.54.0-14.el9_3 | ALSA-2023:6265 |
| AlmaLinux 9 | ghostscript-x11 | Fixed | 9.54.0-14.el9_3 | ALSA-2023:6265 |
| AlmaLinux 9 | libgs | Fixed | 9.54.0-11.el9_2 | ALSA-2023:6732 |
| AlmaLinux 9 | libgs-devel | Fixed | 9.54.0-14.el9_3 | ALSA-2023:6265 |
| Alpine Linux 3.24 | ghostscript | Fixed | 10.02.0-r0 | ALPINE-CVE-2023-43115 |
| Alpine Linux 3.23 | ghostscript | Fixed | 10.02.0-r0 | ALPINE-CVE-2023-43115 |
| Alpine Linux 3.22 | ghostscript | Fixed | 10.02.0-r0 | ALPINE-CVE-2023-43115 |
| Alpine Linux 3.21 | ghostscript | Fixed | 10.02.0-r0 | ALPINE-CVE-2023-43115 |
| Alpine Linux 3.20 | ghostscript | Fixed | 10.02.0-r0 | ALPINE-CVE-2023-43115 |
| Alpine Linux 3.19 | ghostscript | Fixed | 10.02.0-r0 | ALPINE-CVE-2023-43115 |
| Alpine Linux 3.18 | ghostscript | Fixed | 10.02.0-r0 | ALPINE-CVE-2023-43115 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://ghostscript.com/
- https://bugs.ghostscript.com/show_bug.cgi?id=707051
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=e59216049cac290fb437a04c4f41ea46826cfba5
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IK3UXJ5HKMPAL5EQELJAWSRPA2AUOJJO/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PG5AQV7JOL5TAU76FWPJCMSKO5DREKV5/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.