cve.bz

CVE-2021-45949 Out-of-bounds Write

5.5 mediumExploit referenceEPSS 1.7%

Medium (5.5). EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

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
EPSS
1.7% (unchanged from 1.7% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-45949 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-45949?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-45949?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-45949 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-45949

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-45949](https://cve.bz/cve/badge/CVE-2021-45949.svg)](https://cve.bz/cve/CVE-2021-45949)

HTML:

<a href="https://cve.bz/cve/CVE-2021-45949"><img src="https://cve.bz/cve/badge/CVE-2021-45949.svg" alt="CVE-2021-45949"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
artifex:ghostscriptfrom 9.50 through 9.54.0
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9ghostscript9.26a~dfsg-0+deb9u8DLA-2879-1
Debian10ghostscript9.27~dfsg-2+deb10u5DSA-5038-1
Debian11ghostscript9.53.3~dfsg-7+deb11u2DSA-5038-1
Debian12, 13, 14ghostscript9.55.0~dfsg-1DEBIAN-CVE-2021-45949
Ubuntu18.04:LTSghostscript9.26~dfsg+0-0ubuntu0.18.04.15UBUNTU-CVE-2021-45949 USN-5224-1
Ubuntu20.04:LTSghostscript9.50~dfsg-5ubuntu4.5UBUNTU-CVE-2021-45949 USN-5224-1
UbuntuPro:16.04:LTSghostscript9.26~dfsg+0-0ubuntu0.16.04.14+esm1UBUNTU-CVE-2021-45949 USN-5224-2
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS and 5 moreghostscript9.52-161.1SUSE-SU-2022:0088-3
SUSELinux Enterprise Module for Basesystem 15 SP3ghostscript9.52-161.1SUSE-SU-2022:0088-1
SUSELinux Enterprise Real Time 15 SP2ghostscript9.52-161.1SUSE-SU-2022:0088-2
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5ghostscript9.52-23.48.1SUSE-SU-2022:0081-1
SUSEPackage Hub 12 SP1htmldoc1.8.28-9.1openSUSE-SU-2022:0088-1
openSUSELeap 15.3ghostscript9.52-161.1openSUSE-SU-2022:0088-1
openSUSETumbleweedghostscript9.54.0-3.1openSUSE-SU-2024:11744-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security has rated this issue as having Moderate security impact and the issue is not currently planned to be addressed in future updates for Red Hat Enterprise Linux 6 and 7, hence, marked as Out-of-Support-Scope. For additional information, refer to the Red Hat Enterprise Linux Life Cycle & Updates Policy: https://access.redhat.com/support/policy/updates/errata/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6ghostscriptNot affected
Red Hat Enterprise Linux 7ghostscriptOut of support scope
Red Hat Enterprise Linux 8ghostscriptWill not fix
Red Hat Enterprise Linux 8gimp:flatpak/ghostscriptWill not fix
Red Hat Enterprise Linux 9ghostscriptNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-45949.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON