CVE-2023-4042
Ghostscript vulnerability analysis and mitigation

Overview

A flaw was discovered in the ghostscript package where the fix for CVE-2020-16305 was not properly included in the RHSA-2021:1852-06 advisory as previously claimed. This vulnerability, identified as CVE-2023-4042, specifically affects the ghostscript package as distributed with Red Hat Enterprise Linux 8. The issue was discovered in 2023 and was later addressed through RHSA-2023:7053 (Red Hat Advisory).

Technical details

The vulnerability is related to an incomplete fix for a previous buffer overflow vulnerability (CVE-2020-16305) in the pcxwriterle() function in contrib/japanese/gdev10v.c. The original vulnerability allowed for potential out-of-bounds pointer dereferencing due to incorrect if statement conditional ordering. The CVSS v3.1 base score for this vulnerability is 5.5 (Medium), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability primarily affects system availability, with no direct impact on confidentiality or integrity. The CVSS scoring indicates that successful exploitation could lead to high availability impact, though it requires local access and user interaction (Red Hat Advisory).

Mitigation and workarounds

Red Hat has addressed this vulnerability by releasing an update through RHSA-2023:7053. Users are advised to update their ghostscript packages to version 9.27-11.el8. The fix is available for various architectures including x86_64, s390x, ppc64le, and aarch64 (Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related Ghostscript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59800MEDIUM5.5
  • GhostscriptGhostscript
  • cpe:2.3:a:artifex:ghostscript
NoYesSep 22, 2025
CVE-2025-59799MEDIUM5.5
  • GhostscriptGhostscript
  • ghostscript-x11-debuginfo
NoYesSep 22, 2025
CVE-2025-59798MEDIUM5.5
  • GhostscriptGhostscript
  • libgs-devel
NoYesSep 22, 2025
CVE-2025-7462MEDIUM5.3
  • GhostscriptGhostscript
  • ghostscript-gtk-debuginfo
NoYesJul 12, 2025
CVE-2025-59801MEDIUM4.3
  • GhostscriptGhostscript
  • ghostscript
NoYesSep 22, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management