{"schemaVersion":3,"id":"CVE-2021-45949","aliases":["UBUNTU-CVE-2021-45949","DEBIAN-CVE-2021-45949"],"status":"published","duplicateOf":null,"title":null,"description":"Ghostscript GhostPDL 9.50 through 9.54.0 has a heap-based buffer overflow in sampled_data_finish (called from sampled_data_continue and interp).","dates":{"published":"2021-12-31T23:54:37.000Z","modified":"2026-10-08T00:11:09.813Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.9,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.9,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","exploitability":3.3,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01619,"percentile":0.75702,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.21799999999999997,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01401},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01619,"percentile":0.75702}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01401,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01619,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01619,"percentile":0.75702}]},"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_235EF26E592D0FD5","name":"Exploit Reference (bugs.chromium.org)","source":"reference","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34675","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"},{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"}],"affected":[{"vendor":"artifex","product":"ghostscript","name":"Ghostscript","label":"ghostscript","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 9.50, ≤ 9.54.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 9.50, ≤ 9.54.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":"< 9.55.0~dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.55.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":"< 9.26~dfsg+0-0ubuntu0.16.04.14+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 9.26~dfsg+0-0ubuntu0.18.04.15","noFixRecorded":false,"fixedIn":null},{"text":"< 9.50~dfsg-5ubuntu4.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.26~dfsg+0-0ubuntu0.16.04.14+esm1 | < 9.26~dfsg+0-0ubuntu0.18.04.15 | < 9.50~dfsg-5ubuntu4.5","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},{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0 | 10.0 | 11.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":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-803.yaml","label":"github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-803.yaml","hostname":"github.com","tags":["X Refsource MISC","REPORT","Third Party Advisory"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34675","label":"bugs.chromium.org/p/oss-fuzz/issues/detail?id=34675","hostname":"bugs.chromium.org","tags":["X Refsource MISC","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=2a3129365d3bc0d4a41f107ef175920d1505d1f7","label":"git.ghostscript.com?p=ghostpdl.git%3Ba=commit%3Bh=2a3129365d3bc0d4a41f107ef175920d1505d1f7","hostname":"git.ghostscript.com","tags":["X Refsource MISC"]},{"url":"https://www.debian.org/security/2022/dsa-5038","label":"www.debian.org/security/2022/dsa-5038","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00006.html","label":"lists.debian.org/debian-lts-announce/2022/01/msg00006.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-45949","label":"ubuntu.com/security/CVE-2021-45949","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5224-1","label":"ubuntu.com/security/notices/USN-5224-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5224-2","label":"ubuntu.com/security/notices/USN-5224-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-45949","label":"www.cve.org/CVERecord?id=CVE-2021-45949","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-45949","label":"security-tracker.debian.org/tracker/CVE-2021-45949","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2879-1","DSA-5038-1","MGASA-2022-0012","OPENSUSE-SU-2022:0088-1","OPENSUSE-SU-2024:11744-1","SUSE-SU-2022:0081-1","SUSE-SU-2022:0088-1","SUSE-SU-2022:0088-2","SUSE-SU-2022:0088-3","USN-5224-1","USN-5224-2"],"duplicates":[],"related":["OPENSUSE-SU-2022:0088-1","OPENSUSE-SU-2024:11744-1","SUSE-SU-2022:0081-1","SUSE-SU-2022:0088-1","SUSE-SU-2022:0088-2","SUSE-SU-2022:0088-3","USN-5224-1","USN-5224-2"]},"timeline":[{"kind":"published","date":"2021-12-31T23:54:37.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T00:11:09.813Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:50:44.456Z","stale":false,"partial":false}}