CVEfocus › CVE database › CVE-2023-4042

CVE-2023-4042Ghostscript: incomplete fix for cve-2020-16305

CVSS 5.5 MediumEPSS 0.4% (higher than 23% of CVEs)Published 2023-08-23Updated 2026-11-07Assigner: redhat

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.

CWE-125

What to do

Fixed builds are available from AlmaLinux, Red Hat: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
2Fix pending
20Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 16.04ghostscriptFix pending
Ubuntu 14.04ghostscriptFix pending
Red Hat Enterprise Linux 9ghostscriptNot affected
Red Hat Enterprise Linux 9ghostscript-docNot affected
Red Hat Enterprise Linux 9ghostscript-tools-dvipdfNot affected
Red Hat Enterprise Linux 9ghostscript-tools-fontsNot affected
Red Hat Enterprise Linux 9ghostscript-tools-printingNot affected
Red Hat Enterprise Linux 9ghostscript-x11Not affected
Red Hat Enterprise Linux 9libgsNot affected
Red Hat Enterprise Linux 9libgs-develNot affected
Red Hat Enterprise Linux 8ghostscriptFixed
Affected
0:9.27-11.el8RHSA-2023:7053
Red Hat Enterprise Linux 8ghostscript-docFixed
Affected
0:9.27-11.el8RHSA-2023:7053
Red Hat Enterprise Linux 8ghostscript-tools-dvipdfFixed
Affected
0:9.27-11.el8RHSA-2023:7053
Red Hat Enterprise Linux 8ghostscript-tools-fontsFixed
Affected
0:9.27-11.el8RHSA-2023:7053
Red Hat Enterprise Linux 8ghostscript-tools-printingFixed
Affected
0:9.27-11.el8RHSA-2023:7053
Red Hat Enterprise Linux 8ghostscript-x11Fixed
Affected
0:9.27-11.el8RHSA-2023:7053
Red Hat Enterprise Linux 8libgsFixed
Affected
0:9.27-11.el8RHSA-2023:7053
Red Hat Enterprise Linux 8libgs-develFixed
Affected
0:9.27-11.el8RHSA-2023:7053
Red Hat Enterprise Linux 7ghostscriptNot affected
Red Hat Enterprise Linux 7ghostscript-cupsNot affected
Red Hat Enterprise Linux 7ghostscript-develNot affected
Red Hat Enterprise Linux 7ghostscript-docNot affected
Red Hat Enterprise Linux 7ghostscript-gtkNot affected
Red Hat Enterprise Linux 7libgsNot affected
Red Hat Enterprise Linux 7libgs-develNot affected
Red Hat Enterprise Linux 6ghostscriptNot affected
Red Hat Enterprise Linux 6ghostscript-develNot affected
Red Hat Enterprise Linux 6ghostscript-docNot affected
Red Hat Enterprise Linux 6ghostscript-gtkNot affected
AlmaLinux 8ghostscriptFixed9.27-11.el8ALSA-2023:7053
AlmaLinux 8ghostscript-docFixed9.27-11.el8ALSA-2023:7053
AlmaLinux 8ghostscript-tools-dvipdfFixed9.27-11.el8ALSA-2023:7053
AlmaLinux 8ghostscript-tools-fontsFixed9.27-11.el8ALSA-2023:7053
AlmaLinux 8ghostscript-tools-printingFixed9.27-11.el8ALSA-2023:7053
AlmaLinux 8ghostscript-x11Fixed9.27-11.el8ALSA-2023:7053
AlmaLinux 8libgsFixed9.27-11.el8ALSA-2023:7053
AlmaLinux 8libgs-develFixed9.27-11.el8ALSA-2023:7053

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.