CVE-2023-28879
Reported by mitre · Published March 31, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ghostscript-tools-dvipdf | Amazon Linux | 9.56.1-7.amzn2023.0.1 |
| ghostscript-doc | Amazon Linux | 9.56.1-7.amzn2023.0.1, 9.25-5.amzn2.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | ghostscript-tools-dvipdf | 0 |
| amazon:2 | ghostscript-doc | 0 |
| amazon:2023 | ghostscript-doc | 0 |
| amazon:2 | ghostscript-gtk | 0 |
| amazon:2023 | ghostscript-tools-fonts | 0 |
| amazon:2023 | ghostscript-tools-printing | 0 |
| amazon:2023 | libgs | 0 |
| amazon:2023 | ghostscript-x11 | 0 |
| alpine | ghostscript | 0, 0, 0 |
| amazon:2 | libgs | 0 |
| n/a | n/a | * |
| amazon:2 | ghostscript-cups | 0 |
| amazon:2023 | ghostscript | 0 |
| amazon:2023 | ghostscript-gtk | 0 |
| amazon:2 | libgs-devel | 0 |
| amazon:2023 | libgs-devel | 0 |
| amazon:2 | ghostscript | 0 |
Timeline
- Mar 31, 2023 CVE Published
- Mar 31, 2023 PoC Published (5 in total, the first dated here)
- Apr 1, 2023 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory (8 in total, the first dated here)
- Mar 10, 2026 Distribution Patch (5 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-28879
vulnetix vdb fixes CVE-2023-28879
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-28879/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20230404 [SECURITY] [DLA 3381-1] ghostscript security update mailing-list
- DSA-5383 vendor-advisory
- FEDORA-2023-f51bc947bb vendor-advisory
- [oss-security] 20230412 Ghostscript CVE-2023-28879: "Shell in the Ghost" mailing-list
- FEDORA-2023-fbf86d8916 vendor-advisory
- FEDORA-2023-366850fc87 vendor-advisory
- GLSA-202309-03 vendor-advisory