CVE-2021-45949: artifex ghostscript Out-of-bounds Write
CVSS: 5.5v3.1MediumModified
AliasesUBUNTU-CVE-2021-45949DEBIAN-CVE-2021-45949
Published 31-12-2021Last modified 08-10-2026
Vulnerability summary
CVE-2021-45949 is a medium (CVSS 5.5) Out-of-bounds Write vulnerability in artifex ghostscript. EPSS estimates a 1.62% chance of exploitation in the next 30 days, higher than 75.7% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
5.5/10
010
Medium · v3.1 (NVD)EPSS score
1.62%
0%100%
Low · +0.22 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference
Advisory lineage
Upstream 0 · Downstream 11 · Related 8Timeline
- 31-12-2021PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
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).
CVSS metrics
5 scores · 4 sources · 2 versionsMedium 5.5Preferred score · NVD (NIST)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HSources4 sources · 3.9–5.5
- CVE.orgCNA3.9LowCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated3.9LowCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:LDiffers
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Medium 4.3Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:N/I:N/A:PSourcesSingle source
EPSS trend
Probability
1.62%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
+0.22 pp
From 1.40% on 19-09-2026
19-09-202619-10-2026
EPSS score1.62%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (bugs.chromium.org)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
- CWE-122Heap-based Buffer OverflowA 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().
Affected systems
Debian2 products
- ghostscript< 9.55.0~dfsg-1
- debian_linuxEOL9.0 | 10.0 | 11.0
Artifex1 product
- ghostscript≥ 9.50, ≤ 9.54.0
Ubuntu1 product
- ghostscript< 9.26~dfsg+0-0ubuntu0.16.04.14+esm1 | < 9.26~dfsg+0-0ubuntu0.18.04.15 | < 9.50~dfsg-5ubuntu4.5
3 vendors · 4 products
References
10 links- github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-803.yamlX Refsource MISCREPORTThird Party Advisory
- bugs.chromium.org/p/oss-fuzz/issues/detail?id=34675X Refsource MISCExploitIssue TrackingThird Party Advisory
- lists.debian.org/debian-lts-announce/2022/01/msg00006.htmlMailing ListX Refsource MLISTThird Party Advisory