CVE-2023-38559 Ghostscript: out-of-bound read in base/gdevdevn.c:1973 in devn_pcx_write_rle could result in dos
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.
Which versions are affected by CVE-2023-38559?
It affects 4 products.
Linux distribution packages (9)
ghostscript SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 9.52-150000.170.1 |
ghostscript SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 9.52-150000.170.1 |
ghostscript SUSE:Linux Enterprise Server 12 SP5 | All versions | 9.52-23.57.1 |
ghostscript SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 9.52-23.57.1 |
ghostscript SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 9.52-23.57.1 |
ghostscript SUSE:Manager Proxy 4.2 | All versions | 9.52-150000.170.1 |
ghostscript SUSE:Manager Server 4.2 | All versions | 9.52-150000.170.1 |
ghostscript openSUSE:Leap 15.4 | All versions | 9.52-150000.170.1 |
ghostscript openSUSE:Leap 15.5 | All versions | 9.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.
Other vulnerabilities in Artifex Ghostscript
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.