CVE-2023-38559 Ghostscript: out-of-bound read in base/gdevdevn.c:1973 in devn_pcx_write_rle could result in dos

Medium 5.5 Published Updated

A local attacker can cause a denial of service in Ghostscript by processing a crafted PDF file, leading to an out-of-bounds read.

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-38559?

CVE-2023-38559 is a medium-severity memory corruption vulnerability in Artifex Ghostscript, published on 1 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 buffer overflow flaw was found in base/gdevdevn.c:1973 in devn_pcx_write_rle() in ghostscript. This issue may allow a local attacker to cause a denial of service via outputting a crafted PDF file for a DEVN device with gs.

Weakness: CWE-120, CWE-125

Which versions are affected by CVE-2023-38559?

It affects 4 products.

Linux distribution packages (9)
ghostscript SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions9.52-150000.170.1
ghostscript SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions9.52-150000.170.1
ghostscript SUSE:Linux Enterprise Server 12 SP5All versions9.52-23.57.1
ghostscript SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions9.52-23.57.1
ghostscript SUSE:Linux Enterprise Software Development Kit 12 SP5All versions9.52-23.57.1
ghostscript SUSE:Manager Proxy 4.2All versions9.52-150000.170.1
ghostscript SUSE:Manager Server 4.2All versions9.52-150000.170.1
ghostscript openSUSE:Leap 15.4All versions9.52-150000.170.1
ghostscript openSUSE:Leap 15.5All versions9.52-150000.170.1

Products include Artifex Ghostscript, Debian Debian Linux, Fedoraproject Fedora, Redhat Enterprise Linux.

How do I fix CVE-2023-38559?

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-38559 being exploited?

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

All Artifex Ghostscript vulnerabilities

Sources

Also known as BELL-CVE-2023-38559, DEBIAN-CVE-2023-38559, DLA-3519-1, GHSA-v34c-9rwg-qpf6, SUSE-SU-2023:3438-1, SUSE-SU-2023:3439-1 and 2 more.

Is CVE-2023-38559 in your software?

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

Check your SBOMs for free