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

Medium 5.5 Published Updated

Ghostscript in Red Hat Enterprise Linux 8 contains an incomplete fix for a memory corruption flaw, potentially allowing code execution or denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-4042?

CVE-2023-4042 is a medium-severity memory corruption vulnerability in Artifex Ghostscript, published on 23 Aug 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-787, CWE-125

Which versions are affected by CVE-2023-4042?

It affects 9 products.

Products include Artifex Ghostscript, 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 and 3 more.

How do I fix CVE-2023-4042?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-4042 being exploited?

There is no known exploitation of CVE-2023-4042 in the wild and no public exploit code.

All Artifex Ghostscript vulnerabilities

Sources

Also known as GHSA-jgj3-64jr-4g3x.

Is CVE-2023-4042 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free