CVE-2023-28879 Memory corruption in n/a

Critical 9.8 Published Updated

A buffer overflow in Ghostscript's PostScript interpreter allows attackers to corrupt memory, potentially leading to code execution or denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-28879?

CVE-2023-28879 is a critical memory corruption vulnerability in Artifex Ghostscript, published on 31 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Artifex Ghostscript through 10.01.0, there is a buffer overflow leading to potential corruption of data internal to the PostScript interpreter, in base/sbcp.c. This affects BCPEncode, BCPDecode, TBCPEncode, and TBCPDecode. If the write buffer is filled to one byte less than full, and one then tries to write an escaped character, two bytes are written.

Weakness: CWE-787

Which versions are affected by CVE-2023-28879?

It affects 2 products.

Linux distribution packages (27)
ghostscript SUSE:Enterprise Storage 7All versions9.52-150000.164.1
ghostscript SUSE:Enterprise Storage 7.1All versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Real Time 15 SP3All versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Server 12 SP2-BCLAll versions9.52-23.51.1
ghostscript SUSE:Linux Enterprise Server 12 SP4-ESPOSAll versions9.52-23.51.1
ghostscript SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions9.52-23.51.1
ghostscript SUSE:Linux Enterprise Server 12 SP5All versions9.52-23.51.1
ghostscript SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions9.52-23.51.1
ghostscript SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions9.52-23.51.1
ghostscript SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions9.52-150000.164.1
ghostscript SUSE:Linux Enterprise Software Development Kit 12 SP5All versions9.52-23.51.1
ghostscript SUSE:Manager Proxy 4.2All versions9.52-150000.164.1
ghostscript SUSE:Manager Server 4.2All versions9.52-150000.164.1
ghostscript SUSE:OpenStack Cloud 9All versions9.52-23.51.1
ghostscript SUSE:OpenStack Cloud Crowbar 9All versions9.52-23.51.1
ghostscript openSUSE:Leap 15.4All versions9.52-150000.164.1
ghostscript openSUSE:TumbleweedAll versions9.56.1-2.1

Products include Artifex Ghostscript, Debian Debian Linux.

How do I fix CVE-2023-28879?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-28879 exists.

All Artifex Ghostscript vulnerabilities

Sources

Also known as ALPINE-CVE-2023-28879, CLSA-2025-1742923385, CLSA-2026-1792239264, DEBIAN-CVE-2023-28879, DLA-3381-1, DSA-5383-1 and 7 more.

Is CVE-2023-28879 in your software?

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

Check your SBOMs for free