CVE
CVE-2021-45949
published low CVSS 3.1 · 3.9ghostscript: heap-based buffer overflow in sampled_data_finish
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | bullseye | ghostscript | Advisory build | 9.53.3~dfsg-7+deb11u2 | DSA-5038-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscriptaarch64 | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| Ubuntu | bionic | ghostscript | Advisory build | 9.26~dfsg+0-0ubuntu0.18.04.15 | USN-5224-1 |
| Debian | buster | ghostscript | Advisory build | 9.27~dfsg-2+deb10u5 | DSA-5038-1 |
| Debian | stretch | ghostscript | Advisory build | 9.26a~dfsg-0+deb9u8 | DLA-2879-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscriptppc64le | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscripts390x | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
Show 83 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | ghostscriptx86_64 | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscript-develaarch64 | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscript-develppc64le | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscript-devels390x | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscript-develx86_64 | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscript-x11aarch64 | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscript-x11ppc64le | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscript-x11s390x | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-12-SP5 | ghostscript-x11x86_64 | Advisory build | 9.52-23.48.1 | SUSE-SU-2022:0081-1 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscriptaarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscriptppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscripts390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscriptx86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscript-develaarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscript-develppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscript-devels390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscript-develx86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscript-x11aarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscript-x11ppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscript-x11s390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP1 | ghostscript-x11x86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscriptaarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscriptppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscripts390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscriptx86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-2 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscriptx86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-develaarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-develppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-devels390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-develx86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-2 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-develx86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-x11aarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-x11ppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-x11s390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-x11x86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-2 |
| SUSE / openSUSE | SLE-15-SP2 | ghostscript-x11x86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-3 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscriptaarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscriptppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscripts390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscriptx86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscript-develaarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscript-develppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscript-devels390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscript-develx86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscript-x11aarch64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscript-x11ppc64le | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscript-x11s390x | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | SLE-15-SP3 | ghostscript-x11x86_64 | Advisory build | 9.52-161.1 | SUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscriptaarch64 | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscriptppc64le | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscripts390x | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscriptx86_64 | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscript-develaarch64 | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscript-develppc64le | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscript-devels390x | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscript-develx86_64 | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscript-x11aarch64 | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscript-x11ppc64le | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscript-x11s390x | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ghostscript-x11x86_64 | Advisory build | 9.52-161.1 | OPENSUSE-SU-2022:0088-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscriptaarch64 | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscriptppc64le | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscripts390x | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscriptx86_64 | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscript-develaarch64 | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscript-develppc64le | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscript-devels390x | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscript-develx86_64 | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscript-x11aarch64 | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscript-x11ppc64le | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscript-x11s390x | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ghostscript-x11x86_64 | Advisory build | 9.54.0-3.1 | OPENSUSE-SU-2024:11744-1 |
| Ubuntu | bionic | ghostscript-x | Advisory build | 9.26~dfsg+0-0ubuntu0.18.04.15 | USN-5224-1 |
| Ubuntu | bionic | libgs9 | Advisory build | 9.26~dfsg+0-0ubuntu0.18.04.15 | USN-5224-1 |
| Ubuntu | bionic | libgs9-common | Advisory build | 9.26~dfsg+0-0ubuntu0.18.04.15 | USN-5224-1 |
| Ubuntu | focal | ghostscript | Advisory build | 9.50~dfsg-5ubuntu4.5 | USN-5224-1 |
| Ubuntu | focal | ghostscript-x | Advisory build | 9.50~dfsg-5ubuntu4.5 | USN-5224-1 |
| Ubuntu | focal | libgs9 | Advisory build | 9.50~dfsg-5ubuntu4.5 | USN-5224-1 |
| Ubuntu | focal | libgs9-common | Advisory build | 9.50~dfsg-5ubuntu4.5 | USN-5224-1 |
| Ubuntu | xenial | ghostscript | Advisory build | 9.26~dfsg+0-0ubuntu0.16.04.14+esm1 | USN-5224-2 |
| Ubuntu | xenial | ghostscript-x | Advisory build | 9.26~dfsg+0-0ubuntu0.16.04.14+esm1 | USN-5224-2 |
| Ubuntu | xenial | libgs9 | Advisory build | 9.26~dfsg+0-0ubuntu0.16.04.14+esm1 | USN-5224-2 |
| Ubuntu | xenial | libgs9-common | Advisory build | 9.26~dfsg+0-0ubuntu0.16.04.14+esm1 | USN-5224-2 |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.9 / 10
- Severity
- low
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-122 CWE-122 Heap-based Buffer Overflow
References
5- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34675
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=2a3129365d3bc0d4a41f107ef175920d1505d1f7
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-803.yaml
- [debian-lts-announce] 20220114 [SECURITY] [DLA 2879-1] ghostscript security update https://lists.debian.org/debian-lts-announce/2022/01/msg00006.html
- DSA-5038 https://www.debian.org/security/2022/dsa-5038
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4b4be8c7c35ac0f4221079f130e2879f0c1907e187c664886f4d0f8fade636c8
- Ingested
- 08 Oct 2026, 01:02:58 UTC
- Source record
- Official CVE record