---
id: CVE-2023-4042
title: 'Ghostscript: incomplete fix for cve-2020-16305'
summary: >-
  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.
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-125
vendor: Red Hat
product: ghostscript
affected:
  - ghostscript (all versions)
  - ghostscript
  - ghostscript
  - 'gimp:flatpak/ghostscript (all versions)'
  - ghostscript
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2025-07-01T13:58:03.963093Z'
published: '2023-08-23'
updated: '2026-11-07'
sourceUpdated: '2026-11-07T11:31:56.924Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-4042'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2023:7053'
    label: 'RHSA-2023:7053'
  - url: 'https://access.redhat.com/security/cve/CVE-2023-4042'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=1870257'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2228151'
    label: RHBZ#2228151
tags:
  - cve.org
epss: 0.00335
epssPercentile: 0.27049
ingestedAt: '2026-11-07T12:16:41.118Z'
---

## Overview

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.

## Affected

- `ghostscript (all versions)`
- `ghostscript`
- `ghostscript`
- `gimp:flatpak/ghostscript (all versions)`
- `ghostscript`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
