Search
Find a vulnerability
Search criteria
Related vulnerabilities
UBUNTU-CVE-2023-28879 (CVE-2023-28879)
Vulnerability from osv_ubuntu – Published: 2023-03-31 17:15 – Updated: 2026-11-24 09:56 – Source website
VLAI
Details
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.
Upstream
Related
Severity
9.8 (Critical)
9.8 (Critical)
N/A (UNKNOWN)
References
9 references
Impacted products
4 products
| Ecosystem | Package | Version |
|---|---|---|
| Ubuntu:Pro:16.04:LTS |
ghostscript
pkg:deb/ubuntu/ghostscript@9.26~dfsg+0-0ubuntu0.16.04.14+esm5?arch=source&distro=esm-infra/xenial
|
Affected: < 9.26~dfsg+0-0ubuntu0.16.04.14+esm5 (ecosystem)
9.16~dfsg~0-0ubuntu39.16~dfsg~0-0ubuntu49.18~dfsg~0-0ubuntu19.18~dfsg~0-0ubuntu29.18~dfsg~0-0ubuntu2.29.18~dfsg~0-0ubuntu2.39.18~dfsg~0-0ubuntu2.49.18~dfsg~0-0ubuntu2.69.18~dfsg~0-0ubuntu2.79.18~dfsg~0-0ubuntu2.8
and 21 more (see JSON)
|
| Ubuntu:18.04:LTS |
ghostscript
pkg:deb/ubuntu/ghostscript@9.26~dfsg+0-0ubuntu0.18.04.18?arch=source&distro=bionic
|
Affected: < 9.26~dfsg+0-0ubuntu0.18.04.18 (ecosystem)
9.21~dfsg+1-0ubuntu39.22~dfsg+1-0ubuntu19.22~dfsg+1-0ubuntu1.19.22~dfsg+1-0ubuntu1.29.25~dfsg+1-0ubuntu0.18.04.19.25~dfsg+1-0ubuntu0.18.04.29.26~dfsg+0-0ubuntu0.18.04.19.26~dfsg+0-0ubuntu0.18.04.39.26~dfsg+0-0ubuntu0.18.04.49.26~dfsg+0-0ubuntu0.18.04.5
and 12 more (see JSON)
|
| Ubuntu:20.04:LTS |
ghostscript
pkg:deb/ubuntu/ghostscript@9.50~dfsg-5ubuntu4.7?arch=source&distro=focal
|
Affected: < 9.50~dfsg-5ubuntu4.7 (ecosystem)
9.27~dfsg+0-0ubuntu39.27~dfsg+0-0ubuntu49.50~dfsg-5ubuntu19.50~dfsg-5ubuntu29.50~dfsg-5ubuntu39.50~dfsg-5ubuntu49.50~dfsg-5ubuntu4.19.50~dfsg-5ubuntu4.29.50~dfsg-5ubuntu4.39.50~dfsg-5ubuntu4.4
and 2 more (see JSON)
|
| Ubuntu:22.04:LTS |
ghostscript
pkg:deb/ubuntu/ghostscript@9.55.0~dfsg1-0ubuntu5.2?arch=source&distro=jammy
|
Affected: < 9.55.0~dfsg1-0ubuntu5.2 (ecosystem)
9.54.0~dfsg1-0ubuntu29.55.0~dfsg1-0ubuntu49.55.0~dfsg1-0ubuntu59.55.0~dfsg1-0ubuntu5.1
|
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm5"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm5"
},
{
"binary_name": "libgs9",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm5"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm5"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@9.26~dfsg+0-0ubuntu0.16.04.14+esm5?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.26~dfsg+0-0ubuntu0.16.04.14+esm5"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.16~dfsg~0-0ubuntu3",
"9.16~dfsg~0-0ubuntu4",
"9.18~dfsg~0-0ubuntu1",
"9.18~dfsg~0-0ubuntu2",
"9.18~dfsg~0-0ubuntu2.2",
"9.18~dfsg~0-0ubuntu2.3",
"9.18~dfsg~0-0ubuntu2.4",
"9.18~dfsg~0-0ubuntu2.6",
"9.18~dfsg~0-0ubuntu2.7",
"9.18~dfsg~0-0ubuntu2.8",
"9.18~dfsg~0-0ubuntu2.9",
"9.25~dfsg+1-0ubuntu0.16.04.1",
"9.25~dfsg+1-0ubuntu0.16.04.2",
"9.25~dfsg+1-0ubuntu0.16.04.3",
"9.26~dfsg+0-0ubuntu0.16.04.1",
"9.26~dfsg+0-0ubuntu0.16.04.3",
"9.26~dfsg+0-0ubuntu0.16.04.4",
"9.26~dfsg+0-0ubuntu0.16.04.5",
"9.26~dfsg+0-0ubuntu0.16.04.6",
"9.26~dfsg+0-0ubuntu0.16.04.7",
"9.26~dfsg+0-0ubuntu0.16.04.8",
"9.26~dfsg+0-0ubuntu0.16.04.9",
"9.26~dfsg+0-0ubuntu0.16.04.10",
"9.26~dfsg+0-0ubuntu0.16.04.11",
"9.26~dfsg+0-0ubuntu0.16.04.12",
"9.26~dfsg+0-0ubuntu0.16.04.13",
"9.26~dfsg+0-0ubuntu0.16.04.14",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm1",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm2",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm3",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm4"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18"
},
{
"binary_name": "libgs9",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@9.26~dfsg+0-0ubuntu0.18.04.18?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.26~dfsg+0-0ubuntu0.18.04.18"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.21~dfsg+1-0ubuntu3",
"9.22~dfsg+1-0ubuntu1",
"9.22~dfsg+1-0ubuntu1.1",
"9.22~dfsg+1-0ubuntu1.2",
"9.25~dfsg+1-0ubuntu0.18.04.1",
"9.25~dfsg+1-0ubuntu0.18.04.2",
"9.26~dfsg+0-0ubuntu0.18.04.1",
"9.26~dfsg+0-0ubuntu0.18.04.3",
"9.26~dfsg+0-0ubuntu0.18.04.4",
"9.26~dfsg+0-0ubuntu0.18.04.5",
"9.26~dfsg+0-0ubuntu0.18.04.6",
"9.26~dfsg+0-0ubuntu0.18.04.7",
"9.26~dfsg+0-0ubuntu0.18.04.8",
"9.26~dfsg+0-0ubuntu0.18.04.9",
"9.26~dfsg+0-0ubuntu0.18.04.10",
"9.26~dfsg+0-0ubuntu0.18.04.11",
"9.26~dfsg+0-0ubuntu0.18.04.12",
"9.26~dfsg+0-0ubuntu0.18.04.13",
"9.26~dfsg+0-0ubuntu0.18.04.14",
"9.26~dfsg+0-0ubuntu0.18.04.15",
"9.26~dfsg+0-0ubuntu0.18.04.16",
"9.26~dfsg+0-0ubuntu0.18.04.17"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.50~dfsg-5ubuntu4.7"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.50~dfsg-5ubuntu4.7"
},
{
"binary_name": "libgs9",
"binary_version": "9.50~dfsg-5ubuntu4.7"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.50~dfsg-5ubuntu4.7"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@9.50~dfsg-5ubuntu4.7?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.50~dfsg-5ubuntu4.7"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.27~dfsg+0-0ubuntu3",
"9.27~dfsg+0-0ubuntu4",
"9.50~dfsg-5ubuntu1",
"9.50~dfsg-5ubuntu2",
"9.50~dfsg-5ubuntu3",
"9.50~dfsg-5ubuntu4",
"9.50~dfsg-5ubuntu4.1",
"9.50~dfsg-5ubuntu4.2",
"9.50~dfsg-5ubuntu4.3",
"9.50~dfsg-5ubuntu4.4",
"9.50~dfsg-5ubuntu4.5",
"9.50~dfsg-5ubuntu4.6"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.55.0~dfsg1-0ubuntu5.2"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.55.0~dfsg1-0ubuntu5.2"
},
{
"binary_name": "libgs9",
"binary_version": "9.55.0~dfsg1-0ubuntu5.2"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.55.0~dfsg1-0ubuntu5.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@9.55.0~dfsg1-0ubuntu5.2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.55.0~dfsg1-0ubuntu5.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.54.0~dfsg1-0ubuntu2",
"9.55.0~dfsg1-0ubuntu4",
"9.55.0~dfsg1-0ubuntu5",
"9.55.0~dfsg1-0ubuntu5.1"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2023-28879",
"modified": "2026-11-24T09:56:33Z",
"published": "2023-03-31T17:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2023-28879"
},
{
"type": "REPORT",
"url": "https://ghostscript.readthedocs.io/en/latest/News.html"
},
{
"type": "REPORT",
"url": "https://artifex.com/news/critical-security-vulnerability-fixed-in-ghostscript"
},
{
"type": "REPORT",
"url": "https://www.openwall.com/lists/oss-security/2023/04/12/4"
},
{
"type": "REPORT",
"url": "https://offsec.almond.consulting/ghostscript-cve-2023-28879.html"
},
{
"type": "REPORT",
"url": "https://ghostscript.com/blog/pdfi.html"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6017-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6017-2"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2023-28879"
}
],
"related": [
"USN-6017-1",
"USN-6017-2"
],
"schema_version": "1.9.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"source": "NVD",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2023-28879"
]
}