{"schemaVersion":3,"id":"CVE-2020-16303","aliases":["ALPINE-CVE-2020-16303","UBUNTU-CVE-2020-16303","DEBIAN-CVE-2020-16303"],"status":"published","duplicateOf":null,"title":null,"description":"A use-after-free vulnerability in xps_finish_image_path() in devices/vector/gdevxps.c of Artifex Software GhostScript v9.50 allows a remote attacker to escalate privileges via a crafted PDF file. This is fixed in v9.51.","dates":{"published":"2020-08-13T02:09:06.000Z","modified":"2024-08-04T13:37:54.291Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"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":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 · 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},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01808,"percentile":0.78301,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.014999999999999736,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01793},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01808,"percentile":0.78301}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01793,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01808,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01808,"percentile":0.78301}]},"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":[{"id":"REF_4B1F2FCFD3C76CB8","name":"Exploit Reference (bugs.ghostscript.com)","source":"reference","url":"https://bugs.ghostscript.com/show_bug.cgi?id=701818","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"alpine","product":"ghostscript","name":"ghostscript","label":"ghostscript","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/ghostscript","purlType":"apk","versions":[{"text":"< 9.51-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.51-r0","eol":null,"hubHref":null},{"vendor":"artifex","product":"ghostscript","name":"Ghostscript","label":"ghostscript","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"9.50","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.50","eol":null,"hubHref":"/vendor/artifex/ghostscript"},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"18.04","noFixRecorded":false,"fixedIn":null},{"text":"20.04","noFixRecorded":false,"fixedIn":null}],"versionsText":"16.04 | 18.04 | 20.04","eol":{"isEol":true,"eolDate":"2021-04-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"16.04","label":"16.04 'Xenial Xerus' (LTS)","eolFrom":"2021-04-02T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"16.04.7"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"ghostscript","name":"ghostscript","label":"ghostscript","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ghostscript","purlType":"deb","versions":[{"text":"< 9.51~dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.51~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":"< 9.26~dfsg+0-0ubuntu0.16.04.13","noFixRecorded":false,"fixedIn":null},{"text":"< 9.26~dfsg+0-0ubuntu0.18.04.13","noFixRecorded":false,"fixedIn":null},{"text":"< 9.50~dfsg-5ubuntu4.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.26~dfsg+0-0ubuntu0.16.04.13 | < 9.26~dfsg+0-0ubuntu0.18.04.13 | < 9.50~dfsg-5ubuntu4.2","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null},{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0 | 10.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"}],"affectedCount":6,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://bugs.ghostscript.com/show_bug.cgi?id=701818","label":"bugs.ghostscript.com/show_bug.cgi?id=701818","hostname":"bugs.ghostscript.com","tags":["X Refsource MISC","Exploit","Issue Tracking","Vendor Advisory"]},{"url":"https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=94d8955cb77","label":"git.ghostscript.com?p=ghostpdl.git%3Ba=commitdiff%3Bh=94d8955cb77","hostname":"git.ghostscript.com","tags":["X Refsource MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00032.html","label":"lists.debian.org/debian-lts-announce/2020/08/msg00032.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://www.debian.org/security/2020/dsa-4748","label":"www.debian.org/security/2020/dsa-4748","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202008-20","label":"security.gentoo.org/glsa/202008-20","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/4469-1/","label":"usn.ubuntu.com/4469-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2020-16303","label":"security.alpinelinux.org/vuln/CVE-2020-16303","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-16303","label":"ubuntu.com/security/CVE-2020-16303","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4469-1","label":"ubuntu.com/security/notices/USN-4469-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-16303","label":"www.cve.org/CVERecord?id=CVE-2020-16303","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-16303","label":"security-tracker.debian.org/tracker/CVE-2020-16303","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2335-1","DSA-4748-1","MGASA-2020-0344","RHSA-2021:1852","USN-4469-1"],"duplicates":[],"related":["USN-4469-1"]},"timeline":[{"kind":"published","date":"2020-08-13T02:09:06.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T13:37:54.291Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":42,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T09:29:12.274Z","stale":false,"partial":false}}