UBUNTU-CVE-2026-39919 (CVE-2026-39919)
Vulnerability from osv_ubuntu – Published: 2026-09-16 00:00 – Updated: 2026-09-21 18:36 – Source websiteGhostscript before 10.08.0 contains a heap-based buffer overflow vulnerability in the JPEG 2000 output adapter (base/sjpx_openjpeg.c) that allows attackers to cause memory corruption by supplying a crafted PDF containing a JPEG 2000 image with mismatched component subsampling factors. When image components declare different subsampling values, the non-samescale sub-byte-depth output path allocates a row buffer sized for packed output but writes a full byte per output column regardless of bit depth, overflowing the allocation and corrupting internal chunk-allocator metadata to achieve code execution.
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm10"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm10"
},
{
"binary_name": "libgs9",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm10"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.26~dfsg+0-0ubuntu0.16.04.14+esm10"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@9.26~dfsg+0-0ubuntu0.16.04.14+esm10?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"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",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm5",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm6",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm7",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm8",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm9",
"9.26~dfsg+0-0ubuntu0.16.04.14+esm10"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18+esm5"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18+esm5"
},
{
"binary_name": "libgs9",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18+esm5"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.26~dfsg+0-0ubuntu0.18.04.18+esm5"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@9.26~dfsg+0-0ubuntu0.18.04.18+esm5?arch=source\u0026distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"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",
"9.26~dfsg+0-0ubuntu0.18.04.18",
"9.26~dfsg+0-0ubuntu0.18.04.18+esm1",
"9.26~dfsg+0-0ubuntu0.18.04.18+esm2",
"9.26~dfsg+0-0ubuntu0.18.04.18+esm3",
"9.26~dfsg+0-0ubuntu0.18.04.18+esm4",
"9.26~dfsg+0-0ubuntu0.18.04.18+esm5"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.50~dfsg-5ubuntu4.15+esm2"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.50~dfsg-5ubuntu4.15+esm2"
},
{
"binary_name": "libgs9",
"binary_version": "9.50~dfsg-5ubuntu4.15+esm2"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.50~dfsg-5ubuntu4.15+esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@9.50~dfsg-5ubuntu4.15+esm2?arch=source\u0026distro=esm-infra/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"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",
"9.50~dfsg-5ubuntu4.7",
"9.50~dfsg-5ubuntu4.8",
"9.50~dfsg-5ubuntu4.9",
"9.50~dfsg-5ubuntu4.10",
"9.50~dfsg-5ubuntu4.11",
"9.50~dfsg-5ubuntu4.12",
"9.50~dfsg-5ubuntu4.13",
"9.50~dfsg-5ubuntu4.14",
"9.50~dfsg-5ubuntu4.15",
"9.50~dfsg-5ubuntu4.15+esm1",
"9.50~dfsg-5ubuntu4.15+esm2"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "9.55.0~dfsg1-0ubuntu5.14"
},
{
"binary_name": "ghostscript-x",
"binary_version": "9.55.0~dfsg1-0ubuntu5.14"
},
{
"binary_name": "libgs9",
"binary_version": "9.55.0~dfsg1-0ubuntu5.14"
},
{
"binary_name": "libgs9-common",
"binary_version": "9.55.0~dfsg1-0ubuntu5.14"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@9.55.0~dfsg1-0ubuntu5.14?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.55.0~dfsg1-0ubuntu5.14"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"9.54.0~dfsg1-0ubuntu2",
"9.55.0~dfsg1-0ubuntu4",
"9.55.0~dfsg1-0ubuntu5",
"9.55.0~dfsg1-0ubuntu5.1",
"9.55.0~dfsg1-0ubuntu5.2",
"9.55.0~dfsg1-0ubuntu5.3",
"9.55.0~dfsg1-0ubuntu5.4",
"9.55.0~dfsg1-0ubuntu5.5",
"9.55.0~dfsg1-0ubuntu5.6",
"9.55.0~dfsg1-0ubuntu5.7",
"9.55.0~dfsg1-0ubuntu5.9",
"9.55.0~dfsg1-0ubuntu5.10",
"9.55.0~dfsg1-0ubuntu5.11",
"9.55.0~dfsg1-0ubuntu5.12",
"9.55.0~dfsg1-0ubuntu5.13"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "10.02.1~dfsg1-0ubuntu7.9"
},
{
"binary_name": "libgs-common",
"binary_version": "10.02.1~dfsg1-0ubuntu7.9"
},
{
"binary_name": "libgs10",
"binary_version": "10.02.1~dfsg1-0ubuntu7.9"
},
{
"binary_name": "libgs10-common",
"binary_version": "10.02.1~dfsg1-0ubuntu7.9"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@10.02.1~dfsg1-0ubuntu7.9?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "10.02.1~dfsg1-0ubuntu7.9"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"10.01.2~dfsg1-0ubuntu2",
"10.01.2~dfsg1-0ubuntu2.1",
"10.02.1~dfsg1-0ubuntu1",
"10.02.1~dfsg1-0ubuntu2",
"10.02.1~dfsg1-0ubuntu5",
"10.02.1~dfsg1-0ubuntu6",
"10.02.1~dfsg1-0ubuntu7",
"10.02.1~dfsg1-0ubuntu7.1",
"10.02.1~dfsg1-0ubuntu7.3",
"10.02.1~dfsg1-0ubuntu7.4",
"10.02.1~dfsg1-0ubuntu7.5",
"10.02.1~dfsg1-0ubuntu7.6",
"10.02.1~dfsg1-0ubuntu7.7",
"10.02.1~dfsg1-0ubuntu7.8"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "ghostscript",
"binary_version": "10.06.0~dfsg-3ubuntu1.1"
},
{
"binary_name": "libgs-common",
"binary_version": "10.06.0~dfsg-3ubuntu1.1"
},
{
"binary_name": "libgs10",
"binary_version": "10.06.0~dfsg-3ubuntu1.1"
},
{
"binary_name": "libgs10-common",
"binary_version": "10.06.0~dfsg-3ubuntu1.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "ghostscript",
"purl": "pkg:deb/ubuntu/ghostscript@10.06.0~dfsg-3ubuntu1.1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "10.06.0~dfsg-3ubuntu1.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"10.05.0dfsg1-0ubuntu4",
"10.05.0dfsg1-0ubuntu5",
"10.06.0~dfsg-3ubuntu1"
]
}
],
"aliases": [],
"details": "Ghostscript before 10.08.0 contains a heap-based buffer overflow vulnerability in the JPEG 2000 output adapter (base/sjpx_openjpeg.c) that allows attackers to cause memory corruption by supplying a crafted PDF containing a JPEG 2000 image with mismatched component subsampling factors. When image components declare different subsampling values, the non-samescale sub-byte-depth output path allocates a row buffer sized for packed output but writes a full byte per output column regardless of bit depth, overflowing the allocation and corrupting internal chunk-allocator metadata to achieve code execution.",
"id": "UBUNTU-CVE-2026-39919",
"modified": "2026-09-21T18:36:51Z",
"published": "2026-09-16T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-39919"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-39919"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-8791-1"
}
],
"related": [
"USN-8791-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-39919"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.