CVE-2023-4042
Ghostscript: incomplete fix for cve-2020-16305
A flaw was found in ghostscript. The fix for CVE-2020-16305 in ghostscript was not included in RHSA-2021:1852-06 advisory as it was claimed to be. This issue only affects the ghostscript package as shipped with Red Hat Enterprise Linux 8.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.5
Ghostscript: incomplete fix for cve-2020-16305
A flaw was found in ghostscript. The fix for CVE-2020-16305 in ghostscript was not included in RHSA-2021:1852-06 advisory as it was claimed to be. This issue only affects the ghostscript package as shipped with Red Hat Enterprise Linux 8.
- Record
CVE-2023-4042- 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 - Weakness
- CWE-125
- Updated
- 2026-11-07
EUVDEUVD-2023-53934
5.5
A flaw was found in ghostscript. The fix for CVE-2020-16305 in ghostscript was not included in RHSA-2021:1852-06 advisory as it was claimed to be. This issue only affects the ghostscript package as shipped with Red Hat Enterprise Linux 8.
- Record
EUVD-2023-53934- 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 - Updated
- 2026-11-07
GitHub AdvisoriesGHSA-jgj3-64jr-4g3x
5.5
A flaw was found in ghostscript. The fix for CVE-2020-16305 in ghostscript was not included in...
A flaw was found in ghostscript. The fix for CVE-2020-16305 in ghostscript was not included in RHSA-2021:1852-06 advisory as it was claimed to be. This issue only affects the ghostscript package as shipped with Red Hat Enterprise Linux 8.
- Record
GHSA-jgj3-64jr-4g3x- 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 - Weakness
- CWE-125, CWE-787
- Updated
- 2026-11-02
NVD
5.5
A flaw was found in ghostscript. The fix for CVE-2020-16305 in ghostscript was not included in RHSA-2021:1852-06 advisory as it was claimed to be. This issue only affects the ghostscript package as shipped with Red Hat Enterprise Linux 8.
- Record
CVE-2023-4042- 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 - Weakness
- CWE-125, CWE-787
- Updated
- 2026-11-07
OSV
5.5
Ghostscript: incomplete fix for cve-2020-16305
A flaw was found in ghostscript. The fix for CVE-2020-16305 in ghostscript was not included in RHSA-2021:1852-06 advisory as it was claimed to be. This issue only affects the ghostscript package as shipped with Red Hat Enterprise Linux 8.
- Record
CVE-2023-4042- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVRHSA-2023:7053
8.4
Red Hat Security Advisory: ghostscript security and bug fix update
- Record
RHSA-2023:7053- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVALSA-2023:7053 No score
Moderate: ghostscript security and bug fix update
The Ghostscript suite contains utilities for rendering PostScript and PDF documents. Ghostscript translates PostScript code to common bitmap formats so that the code can be displayed or printed.
Security Fix(es):
- ghostscript: buffer overflow in base/sbcp.c leading to data corruption (CVE-2023-28879)
- ghostscript: Out-of-bound read in base/gdevdevn.c:1973 in devn_pcx_write_rle could result in DoS (CVE-2023-38559)
- ghostscript: Incomplete fix for CVE-2020-16305 (CVE-2023-4042)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2023:7053- Updated
- 2026-11-02
Affected products
- artifex ghostscript
- red hat enterprise linux 8
- red hat enterprise linux 6
- red hat enterprise linux 7
- red hat enterprise linux 9
- redhat enterprise linux
- redhat codeready linux builder
- redhat codeready linux builder for arm64
- redhat codeready linux builder for ibm z systems
- redhat codeready linux builder for power little endian
- redhat enterprise linux for arm 64
- redhat enterprise linux for ibm z systems
Show 1 moreShow less
Affected packages
| Package | Affected | Fixed |
|---|---|---|
ghostscriptAlmaLinux:8 From an advisory covering 4 CVEs |
before 9.27-11.el8 | 9.27-11.el8 |
ghostscript-docAlmaLinux:8 From an advisory covering 4 CVEs |
before 9.27-11.el8 | 9.27-11.el8 |
ghostscript-tools-dvipdfAlmaLinux:8 From an advisory covering 4 CVEs |
before 9.27-11.el8 | 9.27-11.el8 |
ghostscript-tools-fontsAlmaLinux:8 From an advisory covering 4 CVEs |
before 9.27-11.el8 | 9.27-11.el8 |
ghostscript-tools-printingAlmaLinux:8 From an advisory covering 4 CVEs |
before 9.27-11.el8 | 9.27-11.el8 |
ghostscript-x11AlmaLinux:8 From an advisory covering 4 CVEs |
before 9.27-11.el8 | 9.27-11.el8 |
libgsAlmaLinux:8 From an advisory covering 4 CVEs |
before 9.27-11.el8 | 9.27-11.el8 |
libgs-develAlmaLinux:8 From an advisory covering 4 CVEs |
before 9.27-11.el8 | 9.27-11.el8 |
ghostscriptRed Hat:enterprise_linux:8::appstream From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-debuginfoRed Hat:enterprise_linux:8::appstream From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
Show 16 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ghostscript-debugsourceRed Hat:enterprise_linux:8::appstream From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-gtk-debuginfoRed Hat:enterprise_linux:8::appstream From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-x11Red Hat:enterprise_linux:8::appstream From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-x11-debuginfoRed Hat:enterprise_linux:8::appstream From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
libgsRed Hat:enterprise_linux:8::appstream From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
libgs-debuginfoRed Hat:enterprise_linux:8::appstream From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-debuginfoRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-debugsourceRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-docRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-gtk-debuginfoRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-tools-dvipdfRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-tools-fontsRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-tools-printingRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
ghostscript-x11-debuginfoRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
libgs-debuginfoRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
libgs-develRed Hat:enterprise_linux:8::crb From an advisory covering 3 CVEs |
before 0:9.27-11.el8 | 0:9.27-11.el8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-4042 is a medium vulnerability (CVSS 5.5) in Artifex Ghostscript, published August 23, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.34%, the 27th percentile. No source names a fixed version.
References
access.redhat.com/errata/RHSA-2023:7053
access.redhat.com/security/cve/CVE-2023-4042
bugzilla.redhat.com/show_bug.cgi?id=1870257
bugzilla.redhat.com/show_bug.cgi?id=2228151
nvd.nist.gov/vuln/detail/CVE-2023-4042
github.com/advisories/GHSA-jgj3-64jr-4g3x
Show 23 moreShow less
access.redhat.com/security/cve/CVE-2023-28879
access.redhat.com/security/cve/CVE-2023-38559
bugzilla.redhat.com/2184585
bugzilla.redhat.com/2224367
bugzilla.redhat.com/2228151
errata.almalinux.org/8/ALSA-2023-7053.html
access.redhat.com/downloads/content/package-browser
github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4042.json
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.9_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2184585
bugzilla.redhat.com/show_bug.cgi?id=2224367
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_7053.json
cve.org/CVERecord?id=CVE-2023-4042
cve.org/CVERecord?id=CVE-2023-28879
nvd.nist.gov/vuln/detail/CVE-2023-28879
artifex.com/news/critical-security-vulnerability-fixed-in-ghostscript
offsec.almond.consulting/ghostscript-cve-2023-28879.html
openwall.com/lists/oss-security/2023/04/12/4
cve.org/CVERecord?id=CVE-2023-38559
nvd.nist.gov/vuln/detail/CVE-2023-38559
bugs.ghostscript.com/show_bug.cgi?id=706897
git.ghostscript.com?p=ghostpdl.git;a=commitdiff;h=d81b82c70bc1