{"schemaVersion":3,"id":"CVE-2024-46954","aliases":["ALPINE-CVE-2024-46954","UBUNTU-CVE-2024-46954","DEBIAN-CVE-2024-46954"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in decode_utf8 in base/gp_utf8.c in Artifex Ghostscript before 10.04.0. Overlong UTF-8 encoding leads to possible ../ directory traversal.","dates":{"published":"2024-11-10T00:00:00.000Z","modified":"2024-11-12T20:26:23.499Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.4,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.4,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":6.4,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00546,"percentile":0.4465,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.0050000000000000565,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00551},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00546,"percentile":0.4465}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00546,"percentile":0.4465}]},"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}],"versionsText":"< 10.04.0-r0","eol":null,"hubHref":null},{"vendor":"artifex","product":"ghostscript","name":"Ghostscript","label":"ghostscript","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 10.04.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.04.0","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.04.0~dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.04.0~dfsg-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":"< 10.02.1~dfsg1-0ubuntu7.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.02.1~dfsg1-0ubuntu7.4","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugs.ghostscript.com/show_bug.cgi?id=707788","label":"bugs.ghostscript.com/show_bug.cgi?id=707788","hostname":"bugs.ghostscript.com","tags":["Permissions Required"]},{"url":"https://github.com/ArtifexSoftware/ghostpdl/blob/master/doc/News.html","label":"github.com/ArtifexSoftware/ghostpdl/blob/master/doc/News.html","hostname":"github.com","tags":["Product"]},{"url":"https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=55f587dd039282316f512e1bea64218fd991f934","label":"cgit.ghostscript.com/cgi-bin/…","hostname":"cgit.ghostscript.com","tags":["Patch"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-46954","label":"security.alpinelinux.org/vuln/CVE-2024-46954","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-46954","label":"ubuntu.com/security/CVE-2024-46954","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-46954","label":"www.cve.org/CVERecord?id=CVE-2024-46954","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7103-1","label":"ubuntu.com/security/notices/USN-7103-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-46954","label":"security-tracker.debian.org/tracker/CVE-2024-46954","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2024-0326","OPENSUSE-SU-2024:14423-1","RHSA-2025:4362","RHSA-2025:7422","RHSA-2025:7499","USN-7103-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:14423-1","USN-7103-1"]},"timeline":[{"kind":"published","date":"2024-11-10T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-12T20:26:23.499Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:09:55.969Z","stale":false,"partial":false}}