Skip to content
OpenAdvisories
Medium · 5.5 CVE-2023-38559 EUVD-2023-42358GHSA-v34c-9rwg-qpf6

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

Published Aug 1, 2023 · Updated Nov 7, 2026 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 10.02.0~dfsg-1 —
Debian 13 ghostscript 10.02.0~dfsg-1 —
Debian 12 ghostscript 10.0.0~dfsg-11+deb12u2 —
Debian 10 ghostscript 9.27~dfsg-2+deb10u8 DLA-3519-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS ghostscript 9.55.0~dfsg1-0ubuntu5.4 USN-6297-1
Ubuntu 20.04 LTS ghostscript 9.50~dfsg-5ubuntu4.9 USN-6297-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS ghostscript 9.26~dfsg+0-0ubuntu0.18.04.18+esm1 USN-6297-1
Ubuntu Pro 16.04 LTS ghostscript 9.26~dfsg+0-0ubuntu0.16.04.14+esm6 USN-6297-1
ReleasePackageFixed inAdvisory
RHEL 9 libgs +7 9.54.0-13.el9 RHSA-2023:6544
RHEL 8 libgs +7 9.27-11.el8 RHSA-2023:7053

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libgs +7 9.54.0-13.el9 ALSA-2023:6544
AlmaLinux 8 libgs +7 9.27-11.el8 ALSA-2023:7053
ReleasePackageFixed inAdvisory
SLES 15 SP5 ghostscript 9.52-150000.170.1 SUSE-SU-2023:3438-1
SLES 15 SP4 ghostscript 9.52-150000.170.1 SUSE-SU-2023:3438-1
SLES 12 SP5 ghostscript 9.52-23.57.1 SUSE-SU-2023:3439-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 ghostscript 9.52-23.57.1 SUSE-SU-2023:3439-1
SUSE Manager Server 4.2 ghostscript 9.52-150000.170.1 SUSE-SU-2023:3438-1
SUSE Manager Proxy 4.2 ghostscript 9.52-150000.170.1 SUSE-SU-2023:3438-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ghostscript 9.56.1-5.1 openSUSE-SU-2024:13081-1
openSUSE Leap 15.5 ghostscript 9.52-150000.170.1 SUSE-SU-2023:3438-1
openSUSE Leap 15.4 ghostscript 9.52-150000.170.1 SUSE-SU-2023:3438-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libgs +8 9.56.1-7.amzn2023.0.3 ALAS2023-2023-296
Amazon Linux 2 libgs +5 9.25-5.amzn2.0.4 ALAS2-2023-2204

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libgs +7 9.54.0-13.el9 ELSA-2023-6544
Oracle Linux 8 libgs +7 9.27-11.el8 ELSA-2023-7053

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ghostscript 10.03.0-r0 —

Advisories 16

References