# CVE-2021-45944: Ghostscript GhostPDL 9.50 through 9.53.3 has a use-after-free in sampleddatasample (called from sampleddatacontinue and interp).

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.46%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-31T23:56:27.000Z
- Modified: 2026-06-17T04:14:17.850Z
- Weaknesses: CWE-416
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- artifex ghostscript: from 9.50 up to 9.53.3
- debian debian_linux: 9.0; 10.0; 11.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29903> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-237.yaml> (third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5038> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/01/msg00006.html> (mailing-list, third-party-advisory)
- <https://github.com/google/oss-fuzz-vulns/issues/16> (issue-tracking)
- <https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=7861fcad13c497728189feafb41cd57b5b50ea25>
- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30715> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-45944](https://www.cve.org/CVERecord?id=CVE-2021-45944), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-45944](https://nvd.nist.gov/vuln/detail/CVE-2021-45944), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45944 · Whole record: https://cve.day/CVE-2021-45944.json · Rebuilt by cve.day 2026-11-25T22:58:06.311Z
