
CVE catalog
CVE-2024-33870
Ghostscript vulnerabilities
- Severity
- Medium · CVSS 6.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.52% · Oct 25, 2026
A flaw was found in Ghostscript. When the `gp_validate_path_len` function validates a path, it distinguishes between absolute and relative paths. In the case of relative paths, it will check the path with and without the current-directory-prefix ("foo" and "./foo"). This does not take into account paths with a parent-directory-prefix. Therefore, a path like "../../foo" is also tested as "./../../foo" and if the current directory "./" is in the permitted paths, it will pass the check, which may allow arbitrary file access. ghostscript: path traversal to arbitrary files if the current directory is in the permitted paths The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ghostscript | sid | 10.08.0~dfsg-2 | fixed |
| Debian | ghostscript | forky | 10.08.0~dfsg-2 | fixed |
| Debian | ghostscript | trixie | 10.05.1~dfsg-1+deb13u1 | fixed |
| Debian | ghostscript | trixie-security | 10.05.1~dfsg-1+deb13u3 | fixed |
| Debian | ghostscript | bookworm | 10.0.0~dfsg-11+deb12u8 | fixed |
| Debian | ghostscript | bookworm-security | 10.0.0~dfsg-11+deb12u8 | fixed |
| Ubuntu | ghostscript | noble | 10.0.0~dfsg-11+deb12u4 | fixed |
| Ubuntu | ghostscript | noble | 10.02.1~dfsg1-0ubuntu7.1 | fixed |
| Ubuntu | ghostscript-doc | noble | 10.02.1~dfsg1-0ubuntu7.1 | fixed |
| Ubuntu | libgs-common | noble | 10.02.1~dfsg1-0ubuntu7.1 | fixed |
| Ubuntu | libgs-dev | noble | 10.02.1~dfsg1-0ubuntu7.1 | fixed |
| Ubuntu | libgs10 | noble | 10.02.1~dfsg1-0ubuntu7.1 | fixed |
| Ubuntu | libgs10-common | noble | 10.02.1~dfsg1-0ubuntu7.1 | fixed |
| Alpine | ghostscript | 3.18 | 10.04.0-r0 | fixed |
| Alpine | ghostscript | 3.19 | 10.03.1-r0 | fixed |
| Alpine | ghostscript | 3.20 | 10.03.1-r0 | fixed |
| Alpine | ghostscript | 3.21 | 10.03.1-r0 | fixed |
| Alpine | ghostscript | 3.22 | 10.03.1-r0 | fixed |
| Alpine | ghostscript | 3.23 | 10.03.1-r0 | fixed |
| Ubuntu | ghostscript | 20.04 | 9.27~dfsg+0-0ubuntu3 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.27~dfsg+0-0ubuntu4 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu1 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu3 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.1 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.2 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.3 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.4 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.5 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.6 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.7 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.8 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.9 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.10 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.11 | vulnerable |
| Ubuntu | ghostscript | 20.04 | 9.50~dfsg-5ubuntu4.12 | fixed |
| Ubuntu | ghostscript | 22.04 | 9.54.0~dfsg1-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu4 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.1 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.2 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.3 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.4 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.5 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.6 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.7 | fixed |
| Ubuntu | ghostscript | 24.04 | 10.01.2~dfsg1-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.01.2~dfsg1-0ubuntu2.1 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu1 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu5 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu6 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ghostscript | source | sid | 10.03.1~dfsg~git20240518-1 | not yet assigned | Not reported | Not reported |
| Debian | ghostscript | source | forky | 10.03.1~dfsg~git20240518-1 | not yet assigned | Not reported | Not reported |
| Debian | ghostscript | source | trixie | 10.03.1~dfsg~git20240518-1 | not yet assigned | Not reported | Not reported |
| Debian | ghostscript | source | bookworm | 10.0.0~dfsg-11+deb12u4 | not yet assigned | Not reported | Not reported |
| Ubuntu | ghostscript | deb | noble | 10.0.0~dfsg-11+deb12u4 | Not reported | Not reported | Not reported |
| Ubuntu | ghostscript | deb | noble | 10.02.1~dfsg1-0ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | ghostscript-doc | deb | noble | 10.02.1~dfsg1-0ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | libgs-common | deb | noble | 10.02.1~dfsg1-0ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | libgs-dev | deb | noble | 10.02.1~dfsg1-0ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | libgs10 | deb | noble | 10.02.1~dfsg1-0ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | libgs10-common | deb | noble | 10.02.1~dfsg1-0ubuntu7.1 | Not reported | Not reported | Not reported |
| Alpine | ghostscript | apk | 3.18 | 10.04.0-r0 | Not reported | ALPINE-CVE-2024-33870 | Not reported |
| Alpine | ghostscript | apk | 3.19 | 10.03.1-r0 | Not reported | ALPINE-CVE-2024-33870 | Not reported |
| Alpine | ghostscript | apk | 3.20 | 10.03.1-r0 | Not reported | ALPINE-CVE-2024-33870 | Not reported |
| Alpine | ghostscript | apk | 3.21 | 10.03.1-r0 | Not reported | ALPINE-CVE-2024-33870 | Not reported |
| Alpine | ghostscript | apk | 3.22 | 10.03.1-r0 | Not reported | ALPINE-CVE-2024-33870 | Not reported |
| Alpine | ghostscript | apk | 3.23 | 10.03.1-r0 | Not reported | ALPINE-CVE-2024-33870 | Not reported |
| Ubuntu | ghostscript | deb | 20.04 | 9.50~dfsg-5ubuntu4.12 | Not reported | UBUNTU-CVE-2024-33870 | Not reported |
| Ubuntu | ghostscript | deb | 22.04 | 9.55.0~dfsg1-0ubuntu5.7 | Not reported | UBUNTU-CVE-2024-33870 | Not reported |
| Ubuntu | ghostscript | deb | 24.04 | 10.02.1~dfsg1-0ubuntu7.1 | Not reported | UBUNTU-CVE-2024-33870 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://access.redhat.com/errata/RHSA-2024:6197]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_2276-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2024-33870]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-33870]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-33870]
- [https://security-tracker.debian.org/tracker/CVE-2024-33870]
- [https://ubuntu.com/security/notices/USN-6835-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1444.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]