ghostscript — security advisory
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.
- Products
- ghostscript
- Affected versions
- Not specified
- Fixed versions
- 10.0.0-r1, 9.54.0-r2, 9.55.0-r1, 9.56.1-r1
- CVEs
- CVE-2023-28879
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 14:57 UTC · Revision 1
Source evidence
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.
osv:ALPINE-CVE-2023-28879
ghostscript
Fixed versions: 9.54.0-r2
ghostscript
Fixed versions: 9.55.0-r1
ghostscript
Fixed versions: 9.56.1-r1
ghostscript
Fixed versions: 10.0.0-r1
Complete source record
{
"id": "727ec955299b1cefae19e5ae85201ca892c56d19e16e8ba76c86ce1cd0539c0c",
"url": "https://osv.dev/vulnerability/ALPINE-CVE-2023-28879",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ALPINE-CVE-2023-28879",
"summary": "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.",
"evidence": "osv:ALPINE-CVE-2023-28879",
"products": [
{
"name": {
"value": "ghostscript",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "9.54.0-r2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ghostscript",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "9.55.0-r1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ghostscript",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "9.56.1-r1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ghostscript",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "10.0.0-r1",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "ALPINE-CVE-2023-28879",
"aliases": [
"ALPINE-CVE-2023-28879"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.54.0-r2"
}
]
}
],
"package": {
"name": "ghostscript",
"purl": "pkg:apk/alpine/ghostscript?arch=source",
"ecosystem": "Alpine:v3.14"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-28879.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.55.0-r1"
}
]
}
],
"package": {
"name": "ghostscript",
"purl": "pkg:apk/alpine/ghostscript?arch=source",
"ecosystem": "Alpine:v3.15"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-28879.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "9.56.1-r1"
}
]
}
],
"package": {
"name": "ghostscript",
"purl": "pkg:apk/alpine/ghostscript?arch=source",
"ecosystem": "Alpine:v3.16"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-28879.json"
},
"ecosystem_specific": {}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "10.0.0-r1"
}
]
}
],
"package": {
"name": "ghostscript",
"purl": "pkg:apk/alpine/ghostscript?arch=source",
"ecosystem": "Alpine:v3.17"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2023-28879.json"
},
"ecosystem_specific": {}
}
],
"modified": "2026-10-26T17:17:58.619872Z",
"provider": "osv",
"upstream": [
"CVE-2023-28879"
],
"references": [
"https://security.alpinelinux.org/vuln/CVE-2023-28879"
]
},
"related_cves": [
{
"value": "CVE-2023-28879",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 454423,
"published_at": "2023-03-31T17:15:06.697+00:00"
}