CVE-2021-45944
Description
GhostPDL 9.50 through 9.53.3 has a use-after-free in sampled_data_sample, leading to potential memory corruption or code execution.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
GhostPDL 9.50 through 9.53.3 has a use-after-free in sampled_data_sample, leading to potential memory corruption or code execution.
Vulnerability
GhostPDL versions 9.50 through 9.53.3 contain a use-after-free vulnerability in the sampled_data_sample function, which is called from sampled_data_continue and interp. This flaw resides in the Ghostscript PostScript interpreter and can be triggered when processing crafted PostScript or PDF files that invoke the sampled data functions. The issue was discovered through OSS-Fuzz (OSV-2021-237) and affects the GhostPDL product line [1][2].
Exploitation
An attacker can exploit this vulnerability by providing a specially crafted PostScript or PDF file that causes the sampled_data_sample function to access memory after it has been freed. No authentication is required; the attack vector is local or remote via file upload/processing. The attacker must entice a user or an automated system to open the malicious file with a vulnerable version of GhostPDL. The exact sequence involves crafting input that triggers the use-after-free condition during sampled data processing, potentially leading to memory corruption [1][2].
Impact
Successful exploitation of the use-after-free could result in information disclosure, memory corruption, or arbitrary code execution. The impact is dependent on how the freed memory is reused after the vulnerability is triggered. In the context of GhostPDL as a component in printer drivers or document processing, this could lead to remote code execution with the privileges of the affected service or user [1][2].
Mitigation
The vulnerability is fixed in GhostPDL versions after 9.53.3. The fixing commit is 7861fcad13c497728189feafb41cd57b5b50ea25 [1]. Users should upgrade to GhostPDL 9.54.0 or later. No workarounds are provided; applying the patch or updating to the latest version is the recommended action. There is no evidence this CVE is listed in the CISA KEV catalogue [1][2].
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
18- Ghostscript/GhostPDLdescription
- osv-coords16 versionspkg:rpm/opensuse/ghostscript&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/ghostscript&distro=openSUSE%20Tumbleweedpkg:rpm/suse/ghostscript&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/ghostscript&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP2pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/ghostscript&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/htmldoc&distro=SUSE%20Package%20Hub%2012%20SP1
< 9.52-161.1+ 15 more
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.54.0-3.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-23.48.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-23.48.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-161.1
- (no CPE)range: < 9.52-23.48.1
- (no CPE)range: < 1.8.28-9.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
7- www.debian.org/security/2022/dsa-5038mitrevendor-advisoryx_refsource_DEBIAN
- bugs.chromium.org/p/oss-fuzz/issues/detailmitrex_refsource_MISC
- bugs.chromium.org/p/oss-fuzz/issues/detailmitrex_refsource_MISC
- git.ghostscript.commitrex_refsource_MISC
- github.com/google/oss-fuzz-vulns/blob/main/vulns/ghostscript/OSV-2021-237.yamlmitrex_refsource_MISC
- github.com/google/oss-fuzz-vulns/issues/16mitrex_refsource_MISC
- lists.debian.org/debian-lts-announce/2022/01/msg00006.htmlmitremailing-listx_refsource_MLIST
News mentions
0No linked articles in our index yet.