CVE catalog

CVE-2024-33870

Ghostscript vulnerabilities

[CVE catalog]

Severity
Medium · CVSS 6.8CVSS: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.

DistributionPackageReleaseVersionStatus
Debianghostscriptsid10.08.0~dfsg-2fixed
Debianghostscriptforky10.08.0~dfsg-2fixed
Debianghostscripttrixie10.05.1~dfsg-1+deb13u1fixed
Debianghostscripttrixie-security10.05.1~dfsg-1+deb13u3fixed
Debianghostscriptbookworm10.0.0~dfsg-11+deb12u8fixed
Debianghostscriptbookworm-security10.0.0~dfsg-11+deb12u8fixed
Ubuntughostscriptnoble10.0.0~dfsg-11+deb12u4fixed
Ubuntughostscriptnoble10.02.1~dfsg1-0ubuntu7.1fixed
Ubuntughostscript-docnoble10.02.1~dfsg1-0ubuntu7.1fixed
Ubuntulibgs-commonnoble10.02.1~dfsg1-0ubuntu7.1fixed
Ubuntulibgs-devnoble10.02.1~dfsg1-0ubuntu7.1fixed
Ubuntulibgs10noble10.02.1~dfsg1-0ubuntu7.1fixed
Ubuntulibgs10-commonnoble10.02.1~dfsg1-0ubuntu7.1fixed
Alpineghostscript3.1810.04.0-r0fixed
Alpineghostscript3.1910.03.1-r0fixed
Alpineghostscript3.2010.03.1-r0fixed
Alpineghostscript3.2110.03.1-r0fixed
Alpineghostscript3.2210.03.1-r0fixed
Alpineghostscript3.2310.03.1-r0fixed
Ubuntughostscript20.049.27~dfsg+0-0ubuntu3vulnerable
Ubuntughostscript20.049.27~dfsg+0-0ubuntu4vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu1vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu2vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu3vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.1vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.2vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.3vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.4vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.5vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.6vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.7vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.8vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.9vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.10vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.11vulnerable
Ubuntughostscript20.049.50~dfsg-5ubuntu4.12fixed
Ubuntughostscript22.049.54.0~dfsg1-0ubuntu2vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu4vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5.1vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5.2vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5.3vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5.4vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5.5vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5.6vulnerable
Ubuntughostscript22.049.55.0~dfsg1-0ubuntu5.7fixed
Ubuntughostscript24.0410.01.2~dfsg1-0ubuntu2vulnerable
Ubuntughostscript24.0410.01.2~dfsg1-0ubuntu2.1vulnerable
Ubuntughostscript24.0410.02.1~dfsg1-0ubuntu1vulnerable
Ubuntughostscript24.0410.02.1~dfsg1-0ubuntu2vulnerable
Ubuntughostscript24.0410.02.1~dfsg1-0ubuntu5vulnerable
Ubuntughostscript24.0410.02.1~dfsg1-0ubuntu6vulnerable
Ubuntughostscript24.0410.02.1~dfsg1-0ubuntu7vulnerable
Ubuntughostscript24.0410.02.1~dfsg1-0ubuntu7.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianghostscriptsourcesid10.03.1~dfsg~git20240518-1not yet assignedNot reportedNot reported
Debianghostscriptsourceforky10.03.1~dfsg~git20240518-1not yet assignedNot reportedNot reported
Debianghostscriptsourcetrixie10.03.1~dfsg~git20240518-1not yet assignedNot reportedNot reported
Debianghostscriptsourcebookworm10.0.0~dfsg-11+deb12u4not yet assignedNot reportedNot reported
Ubuntughostscriptdebnoble10.0.0~dfsg-11+deb12u4Not reportedNot reportedNot reported
Ubuntughostscriptdebnoble10.02.1~dfsg1-0ubuntu7.1Not reportedNot reportedNot reported
Ubuntughostscript-docdebnoble10.02.1~dfsg1-0ubuntu7.1Not reportedNot reportedNot reported
Ubuntulibgs-commondebnoble10.02.1~dfsg1-0ubuntu7.1Not reportedNot reportedNot reported
Ubuntulibgs-devdebnoble10.02.1~dfsg1-0ubuntu7.1Not reportedNot reportedNot reported
Ubuntulibgs10debnoble10.02.1~dfsg1-0ubuntu7.1Not reportedNot reportedNot reported
Ubuntulibgs10-commondebnoble10.02.1~dfsg1-0ubuntu7.1Not reportedNot reportedNot reported
Alpineghostscriptapk3.1810.04.0-r0Not reportedALPINE-CVE-2024-33870Not reported
Alpineghostscriptapk3.1910.03.1-r0Not reportedALPINE-CVE-2024-33870Not reported
Alpineghostscriptapk3.2010.03.1-r0Not reportedALPINE-CVE-2024-33870Not reported
Alpineghostscriptapk3.2110.03.1-r0Not reportedALPINE-CVE-2024-33870Not reported
Alpineghostscriptapk3.2210.03.1-r0Not reportedALPINE-CVE-2024-33870Not reported
Alpineghostscriptapk3.2310.03.1-r0Not reportedALPINE-CVE-2024-33870Not reported
Ubuntughostscriptdeb20.049.50~dfsg-5ubuntu4.12Not reportedUBUNTU-CVE-2024-33870Not reported
Ubuntughostscriptdeb22.049.55.0~dfsg1-0ubuntu5.7Not reportedUBUNTU-CVE-2024-33870Not reported
Ubuntughostscriptdeb24.0410.02.1~dfsg1-0ubuntu7.1Not reportedUBUNTU-CVE-2024-33870Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References