{"schemaVersion":3,"id":"CVE-2024-33870","aliases":["ALPINE-CVE-2024-33870","UBUNTU-CVE-2024-33870","DEBIAN-CVE-2024-33870","CGA-jfqr-43mp-2h4j","CGA-qc34-839c-gvc6"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-07-03T00:00:00.000Z","modified":"2024-11-07T21:47:02.092Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":7.2,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00515,"percentile":0.42673,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00515},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00515,"percentile":0.42673}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00515,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00515,"percentile":0.42673}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"alpine","product":"ghostscript","name":"ghostscript","label":"ghostscript","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/ghostscript","purlType":"apk","versions":[{"text":"< 10.04.0-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 10.03.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.04.0-r0 | < 10.03.1-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ghostscript","name":"ghostscript","label":"ghostscript","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ghostscript","purlType":"apk","versions":[{"text":"< 10.03.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.03.1-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ghostscript","name":"ghostscript","label":"ghostscript","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ghostscript","purlType":"apk","versions":[{"text":"< 10.03.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.03.1-r0","eol":null,"hubHref":null},{"vendor":"artifex","product":"ghostscript","name":"Ghostscript","label":"ghostscript","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 10.03.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.03.1","eol":null,"hubHref":"/vendor/artifex/ghostscript"},{"vendor":"debian","product":"ghostscript","name":"ghostscript","label":"ghostscript","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ghostscript","purlType":"deb","versions":[{"text":"< 10.0.0~dfsg-11+deb12u4","noFixRecorded":false,"fixedIn":null},{"text":"< 10.03.1~dfsg~git20240518-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.0.0~dfsg-11+deb12u4 | < 10.03.1~dfsg~git20240518-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ghostscript","name":"ghostscript","label":"ghostscript","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ghostscript","purlType":"deb","versions":[{"text":"< 9.50~dfsg-5ubuntu4.12","noFixRecorded":false,"fixedIn":null},{"text":"< 9.55.0~dfsg1-0ubuntu5.7","noFixRecorded":false,"fixedIn":null},{"text":"< 10.02.1~dfsg1-0ubuntu7.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.50~dfsg-5ubuntu4.12 | < 9.55.0~dfsg1-0ubuntu5.7 | < 10.02.1~dfsg1-0ubuntu7.1","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugs.ghostscript.com/show_bug.cgi?id=707686","label":"bugs.ghostscript.com/show_bug.cgi?id=707686","hostname":"bugs.ghostscript.com","tags":["WEB","Issue Tracking"]},{"url":"https://www.openwall.com/lists/oss-security/2024/06/28/2","label":"www.openwall.com/lists/oss-security/2024/06/28/2","hostname":"www.openwall.com","tags":["WEB","Mailing List"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-33870","label":"security.alpinelinux.org/vuln/CVE-2024-33870","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-33870","label":"ubuntu.com/security/CVE-2024-33870","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-33870","label":"www.cve.org/CVERecord?id=CVE-2024-33870","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ghostscript.readthedocs.io/en/gs10.03.1/News.html","label":"ghostscript.readthedocs.io/en/gs10.03.1/News.html","hostname":"ghostscript.readthedocs.io","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6835-1","label":"ubuntu.com/security/notices/USN-6835-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-33870","label":"security-tracker.debian.org/tracker/CVE-2024-33870","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/33xxx/CVE-2024-33870.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/33xxx/CVE-2024-33870.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-33870","label":"nvd.nist.gov/vuln/detail/CVE-2024-33870","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-5692-1","MGASA-2024-0192","OPENSUSE-SU-2024:14090-1","RHSA-2024:6197","RHSA-2024:6466","SUSE-SU-2024:2276-1","SUSE-SU-2024:2292-1","USN-6835-1"],"duplicates":[],"related":["CGA-33F8-PHWH-VC74","CGA-82W7-5965-Q7J5","OPENSUSE-SU-2024:14090-1","SUSE-SU-2024:2276-1","SUSE-SU-2024:2292-1","USN-6835-1"]},"timeline":[{"kind":"published","date":"2024-07-03T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-07T21:47:02.092Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T11:56:38.038Z","stale":false,"partial":false}}