{"schemaVersion":3,"id":"CVE-2021-45944","aliases":["UBUNTU-CVE-2021-45944","DEBIAN-CVE-2021-45944"],"status":"published","duplicateOf":null,"title":null,"description":"Ghostscript GhostPDL 9.50 through 9.53.3 has a use-after-free in sampled_data_sample (called from sampled_data_continue and interp).","dates":{"published":"2021-12-31T23:56:27.000Z","modified":"2024-08-04T04:54:31.091Z","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":"OSV · Ubuntu","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":"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.0136,"percentile":0.713,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0136},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0136,"percentile":0.713}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0136,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0136,"percentile":0.713}]},"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_F79287D031E1A62A","name":"Exploit Reference (bugs.chromium.org)","source":"reference","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29903","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":"artifex","product":"ghostscript","name":"Ghostscript","label":"ghostscript","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 9.50, ≤ 9.53.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 9.50, ≤ 9.53.3","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.54.0~dfsg-5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.54.0~dfsg-5","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-237.yaml","label":"github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-237.yaml","hostname":"github.com","tags":["X Refsource MISC","REPORT","Third Party Advisory"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29903","label":"bugs.chromium.org/p/oss-fuzz/issues/detail?id=29903","hostname":"bugs.chromium.org","tags":["X Refsource MISC","Exploit","Issue Tracking","Third Party Advisory"]},{"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://github.com/google/oss-fuzz-vulns/issues/16","label":"github.com/google/oss-fuzz-vulns/issues/16","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking"]},{"url":"https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=7861fcad13c497728189feafb41cd57b5b50ea25","label":"git.ghostscript.com?p=ghostpdl.git%3Ba=commit%3Bh=7861fcad13c497728189feafb41cd57b5b50ea25","hostname":"git.ghostscript.com","tags":["X Refsource MISC"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30715","label":"bugs.chromium.org/p/oss-fuzz/issues/detail?id=30715","hostname":"bugs.chromium.org","tags":["X Refsource MISC","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-45944","label":"ubuntu.com/security/CVE-2021-45944","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-45944","label":"www.cve.org/CVERecord?id=CVE-2021-45944","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-45944","label":"security-tracker.debian.org/tracker/CVE-2021-45944","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:56:27.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T04:54:31.091Z","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-20T05:56:49.932Z","stale":false,"partial":false}}