# CVE-2023-4042: libgs-devel: The Ghostscript suite contains utilities for rendering PostScript and PDF documents

CVE-2023-4042 is fixed in 8 products on 1 platform, first by RHSA-2023:7053, released November 14, 2023. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2023-4042
- Priority: Routine
- CVSS: 5.5 (Moderate)
- EPSS: 0.0034
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 14, 2023

## Description

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 Red Hat Enterprise Linux 8.9 Release Notes linked from the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ghostscript RHEL 8 | 0:9.27-11.el8 | [RHSA-2023:7053](https://patchblox.com/security/data/fix/linux/rhsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript almalinux 8 | 9.27-11.el8 | [ALSA-2023:7053](https://patchblox.com/security/data/fix/linux/alsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript ol 8 | 0:9.27-11.el8 | [ELSA-2023-7053](https://patchblox.com/security/data/fix/linux/elsa-2023-7053.md) | Nov 17, 2023 |
| Linux | ghostscript-doc RHEL 8 | 0:9.27-11.el8 | [RHSA-2023:7053](https://patchblox.com/security/data/fix/linux/rhsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-doc almalinux 8 | 9.27-11.el8 | [ALSA-2023:7053](https://patchblox.com/security/data/fix/linux/alsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-doc ol 8 | 0:9.27-11.el8 | [ELSA-2023-7053](https://patchblox.com/security/data/fix/linux/elsa-2023-7053.md) | Nov 17, 2023 |
| Linux | ghostscript-tools-dvipdf RHEL 8 | 0:9.27-11.el8 | [RHSA-2023:7053](https://patchblox.com/security/data/fix/linux/rhsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-tools-dvipdf almalinux 8 | 9.27-11.el8 | [ALSA-2023:7053](https://patchblox.com/security/data/fix/linux/alsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-tools-dvipdf ol 8 | 0:9.27-11.el8 | [ELSA-2023-7053](https://patchblox.com/security/data/fix/linux/elsa-2023-7053.md) | Nov 17, 2023 |
| Linux | ghostscript-tools-fonts RHEL 8 | 0:9.27-11.el8 | [RHSA-2023:7053](https://patchblox.com/security/data/fix/linux/rhsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-tools-fonts almalinux 8 | 9.27-11.el8 | [ALSA-2023:7053](https://patchblox.com/security/data/fix/linux/alsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-tools-fonts ol 8 | 0:9.27-11.el8 | [ELSA-2023-7053](https://patchblox.com/security/data/fix/linux/elsa-2023-7053.md) | Nov 17, 2023 |
| Linux | ghostscript-tools-printing RHEL 8 | 0:9.27-11.el8 | [RHSA-2023:7053](https://patchblox.com/security/data/fix/linux/rhsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-tools-printing almalinux 8 | 9.27-11.el8 | [ALSA-2023:7053](https://patchblox.com/security/data/fix/linux/alsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-tools-printing ol 8 | 0:9.27-11.el8 | [ELSA-2023-7053](https://patchblox.com/security/data/fix/linux/elsa-2023-7053.md) | Nov 17, 2023 |
| Linux | ghostscript-x11 RHEL 8 | 0:9.27-11.el8 | [RHSA-2023:7053](https://patchblox.com/security/data/fix/linux/rhsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-x11 almalinux 8 | 9.27-11.el8 | [ALSA-2023:7053](https://patchblox.com/security/data/fix/linux/alsa-2023-7053.md) | Nov 14, 2023 |
| Linux | ghostscript-x11 ol 8 | 0:9.27-11.el8 | [ELSA-2023-7053](https://patchblox.com/security/data/fix/linux/elsa-2023-7053.md) | Nov 17, 2023 |
| Linux | libgs RHEL 8 | 0:9.27-11.el8 | [RHSA-2023:7053](https://patchblox.com/security/data/fix/linux/rhsa-2023-7053.md) | Nov 14, 2023 |
| Linux | libgs almalinux 8 | 9.27-11.el8 | [ALSA-2023:7053](https://patchblox.com/security/data/fix/linux/alsa-2023-7053.md) | Nov 14, 2023 |
| Linux | libgs ol 8 | 0:9.27-11.el8 | [ELSA-2023-7053](https://patchblox.com/security/data/fix/linux/elsa-2023-7053.md) | Nov 17, 2023 |
| Linux | libgs-devel RHEL 8 | 0:9.27-11.el8 | [RHSA-2023:7053](https://patchblox.com/security/data/fix/linux/rhsa-2023-7053.md) | Nov 14, 2023 |
| Linux | libgs-devel almalinux 8 | 9.27-11.el8 | [ALSA-2023:7053](https://patchblox.com/security/data/fix/linux/alsa-2023-7053.md) | Nov 14, 2023 |
| Linux | libgs-devel ol 8 | 0:9.27-11.el8 | [ELSA-2023-7053](https://patchblox.com/security/data/fix/linux/elsa-2023-7053.md) | Nov 17, 2023 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
