CVE-2024-33870 json
An issue was discovered in Artifex Ghostscript before 10.03.1.
published 2024-07-03 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-31575
- cvss
- 6.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 44%
- public exploits
- 0
- none known
Summary
An issue was discovered in Artifex Ghostscript before 10.03.1. There is path traversal (via a crafted PostScript document) to arbitrary files if the current directory is in the permitted paths. For example, there can be a transformation of ../../foo to ./../../foo and this will grant access if ./ is permitted.
Patch / fix
- artifex ghostscript 10.03.1
- ghostscript ghostscript 10.03.1
- ghostscript Debian 12 10.0.0~dfsg-11+deb12u4
- ghostscript Debian 14, Debian 13 10.03.1~dfsg~git20240518-1
debian advisories DEBIAN-CVE-2024-33870
- ghostscript Ubuntu 20.04 LTS 9.50~dfsg-5ubuntu4.12
- ghostscript Ubuntu 22.04 LTS 9.55.0~dfsg1-0ubuntu5.7
- ghostscript Ubuntu 24.04 LTS 10.02.1~dfsg1-0ubuntu7.1
ubuntu advisories UBUNTU-CVE-2024-33870
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ghostscript RHEL 9 9.54.0-17.el9_4
- libgs RHEL 9 9.54.0-17.el9_4
- ghostscript-x11 RHEL 9 9.54.0-17.el9_4
- ghostscript-tools-fonts RHEL 9 9.54.0-17.el9_4
- ghostscript-tools-dvipdf RHEL 9 9.54.0-17.el9_4
- ghostscript-tools-printing RHEL 9 9.54.0-17.el9_4
- ghostscript RHEL 9.2 EUS 9.54.0-12.el9_2.2
- libgs RHEL 9.2 EUS 9.54.0-12.el9_2.2
red hat advisories RHSA-2024:6466RHSA-2024:6197
- ghostscript SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +14 more 9.52-150000.194.1
- ghostscript SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 9.52-23.80.1
suse advisories SUSE-SU-2024:2292-1SUSE-SU-2024:2276-1
- ghostscript openSUSE Tumbleweed 10.03.1-1.1
opensuse advisories openSUSE-SU-2024:14090-1
- ghostscript AlmaLinux 9 9.54.0-17.el9_4
- libgs AlmaLinux 9 9.54.0-17.el9_4
- ghostscript-x11 AlmaLinux 9 9.54.0-17.el9_4
- ghostscript-tools-fonts AlmaLinux 9 9.54.0-17.el9_4
- ghostscript-tools-dvipdf AlmaLinux 9 9.54.0-17.el9_4
- ghostscript-tools-printing AlmaLinux 9 9.54.0-17.el9_4
almalinux advisories ALSA-2024:6197
- ghostscript Rocky Linux 9 9.54.0-17.el9_4
rocky linux advisories RLSA-2024:6197
- ghostscript Alpine 3.18 10.04.0-r0
- ghostscript Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 10.03.1-r0
alpine advisories ALPINE-CVE-2024-33870
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-33870 updated cvss 6.8
ghostscript: path traversal to arbitrary files if the current directory is in the permitted paths
-
Red Hat Enterprise Linux 6 ghostscript, ghostscript-gtk Red Hat Enterprise Linux 7 libgs, ghostscript, ghostscript-gtk, ghostscript-cupsaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 libgs, ghostscript, ghostscript-x11, ghostscript-tools-fonts, ghostscript-tools-dvipdf, ghostscript-tools-printingaffected: workaround, no fix planned “Will not fix”
-
Red Hat CodeReady Linux Builder EUS (v.9.2) ghostscript 9.54.0-12.el9_2.2, ghostscript-tools-fonts 9.54.0-12.el9_2.2, ghostscript-tools-printing 9.54.0-12.el9_2.2fixed: vendor fix RHSA-2024:6466
-
Red Hat Enterprise Linux AppStream (v. 9) libgs 9.54.0-17.el9_4, ghostscript 9.54.0-17.el9_4, ghostscript-x11 9.54.0-17.el9_4, ghostscript-tools-fonts 9.54.0-17.el9_4, ghostscript-tools-dvipdf 9.54.0-17.el9_4, ghostscript-tools-printing 9.54.0-17.el9_4fixed: vendor fix RHSA-2024:6197
-
Red Hat Enterprise Linux AppStream EUS (v.9.2) libgs 9.54.0-12.el9_2.2, ghostscript 9.54.0-12.el9_2.2, ghostscript-x11 9.54.0-12.el9_2.2, ghostscript-tools-fonts 9.54.0-12.el9_2.2, ghostscript-tools-dvipdf 9.54.0-12.el9_2.2, ghostscript-tools-printing 9.54.0-12.el9_2.2fixed: vendor fix RHSA-2024:6466
-
Red Hat Enterprise Linux CRB (v. 9) ghostscript 9.54.0-17.el9_4, ghostscript-tools-fonts 9.54.0-17.el9_4, ghostscript-tools-printing 9.54.0-17.el9_4fixed: vendor fix RHSA-2024:6197
-
Red Hat Enterprise Linux 10 ghostscriptnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.52% chance of exploitation in the next 30 days, higher than 44% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.3 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| CNA | 3.1 | 6.3 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
bugs.ghostscript.com
/show_bug.cgi?id=707686
issue-tracking
-
openwall.com
/lists/oss-security/2024/06/28/2
mailing-list
Sources
- CVE List CVE-2024-33870
- NVD CVE-2024-33870
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.