cve.bz

CVE-2023-38559 Classic Buffer Overflow

5.5 mediumEPSS 0.4%Fix available

Medium (5.5). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 38th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-06-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-38559 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-38559?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-38559?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-38559 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:9.27-11.el8
Red Hat Enterprise Linux 90:9.54.0-13.el9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ghostscript9.27~dfsg-2+deb10u8DLA-3519-1
Debian12ghostscript10.0.0~dfsg-11+deb12u2DEBIAN-CVE-2023-38559
Debian13, 14ghostscript10.02.0~dfsg-1DEBIAN-CVE-2023-38559
Ubuntu20.04:LTSghostscript9.50~dfsg-5ubuntu4.9UBUNTU-CVE-2023-38559 USN-6297-1
Ubuntu22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.4UBUNTU-CVE-2023-38559 USN-6297-1
UbuntuPro:16.04:LTSghostscript9.26~dfsg+0-0ubuntu0.16.04.14+esm6UBUNTU-CVE-2023-38559 USN-6297-1
UbuntuPro:18.04:LTSghostscript9.26~dfsg+0-0ubuntu0.18.04.18+esm1UBUNTU-CVE-2023-38559 USN-6297-1
Red Hatenterprise_linux:8::appstreamlibgs, ghostscript, ghostscript-x11 and 5 more0:9.27-11.el8RHSA-2023:7053
Red Hatenterprise_linux:8::crblibgs-devel, ghostscript-doc, libgs-debuginfo and 7 more0:9.27-11.el8RHSA-2023:7053
Red Hatenterprise_linux:9::appstreamlibgs, ghostscript, ghostscript-doc and 9 more0:9.54.0-13.el9RHSA-2023:6544
Red Hatenterprise_linux:9::crbghostscript, libgs-devel, libgs-debuginfo and 6 more0:9.54.0-13.el9RHSA-2023:6544
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5, Manager Proxy 4.2 and 1 moreghostscript9.52-150000.170.1SUSE-SU-2023:3438-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5ghostscript9.52-23.57.1SUSE-SU-2023:3439-1
openSUSELeap 15.4, Leap 15.5ghostscript9.52-150000.170.1SUSE-SU-2023:3438-1
openSUSETumbleweedghostscript9.56.1-5.1openSUSE-SU-2024:13081-1
AlmaLinux8libgs, ghostscript, libgs-devel and 5 more9.27-11.el8ALSA-2023:7053
AlmaLinux9libgs, ghostscript, libgs-devel and 5 more9.54.0-13.el9ALSA-2023:6544
Alpaquita23ghostscript10.01.2-r1BELL-CVE-2023-38559
Alpaquitastreamghostscript10.02.0-r1BELL-CVE-2023-38559

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ghostscript-0:9.27-11.el8Fixed 2023-11-14RHSA-2023:7053
Red Hat Enterprise Linux 9ghostscript-0:9.54.0-13.el9Fixed 2023-11-07RHSA-2023:6544
Red Hat Enterprise Linux 6ghostscriptOut of support scope
Red Hat Enterprise Linux 7ghostscriptOut of support scope
Red Hat Enterprise Linux 8gimp:flatpak/ghostscriptWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-38559.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON