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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-122"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39919.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "10.08.0"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"fixed": "10.08.0"
}
],
"source": "DESCRIPTION"
}
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39919.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"305393621015670409414065145841442554734",
"239732983865232904002593583924554111822",
"77881441252370985866996222684578933495",
"150728988227669549748412078396747417988",
"139369699657578672416155712589810479655",
"263227610100647875364897574580828041454",
"30062800754376641575654399888605665918",
"148550485105214349519108204478230351342",
"209013882919373741414526516809907352723",
"142418078663796278457048400302235852842",
"201854491978180642697412375915342187551",
"110332846198197084865785478293409017128",
"257284505806104527113100397182780155790",
"250378790091529030995621502470525666162",
"185904196480304190715015237931261802876",
"302280129440084736579762531051409376155"
],
"threshold": 0.9
},
"id": "CVE-2026-39919-da8e3e96",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/artifexsoftware/ghostpdl/commit/0a8bf88e39db07b0751a58d6ec1cf992073e4dc1",
"target": {
"file": "base/sjpx_openjpeg.c"
}
}
]
"2026-09-17T08:08:34Z"