# CVE-2021-45949: Ghostscript GhostPDL 9.50 through 9.54.0 has a heap-based buffer overflow in sampleddatafinish (called from sampleddatacontinue and interp).

- Severity: Low 3.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L`
- 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.74%, higher than 78% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-31T23:54:37.000Z
- Modified: 2026-10-08T01:16:31.493Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

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

## Every score

- CISA-ADP: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L`
- 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=34675> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-803.yaml> (third-party-advisory)
- <https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=2a3129365d3bc0d4a41f107ef175920d1505d1f7>
- <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)

## Sources

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

---

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