{"id":"CVE-2026-39919","summary":"Ghostscript \u003c 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter","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.","modified":"2026-09-17T08:08:34.402424Z","published":"2026-09-15T14:26:06.697Z","database_specific":{"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"}],"cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs10080"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39919.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39919"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ghostscript-heap-buffer-overflow-via-jpeg-2000-output-adapter"},{"type":"REPORT","url":"https://bugs.ghostscript.com/show_bug.cgi?id=709666"},{"type":"FIX","url":"https://github.com/ArtifexSoftware/ghostpdl/commit/0a8bf88e39db07b0751a58d6ec1cf992073e4dc1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/artifexsoftware/ghostpdl","events":[{"introduced":"0"},{"fixed":"0a8bf88e39db07b0751a58d6ec1cf992073e4dc1"}],"database_specific":{"source":"REFERENCES"}}],"versions":["ghostpdl-10.05.0-test-base-001","robin_test_ref","ghostpdl-10.01.1-gse-10174","ghostpdl-10.02.0-test-base-001","ken_20220210_baseline","ghostpdl-9.56.0-test-base-5","ghostpdl-9.56.0-test-base-4","ghostpdl-9.56.0-test-base-3","ghostpdl-9.56.0-test-base-2","ghostpdl-9.56.0-test-base-0","ghostpdl-9.55-test-base-0","ghostpdl-9.54.0-test-base-0","ghostpdl-9.52-test-base-4","ghostpdl-9.52-test-base-3","ghostpdl-9.52-test-base-1","chrisl-test","jbig2dec-0.14","ghostpdl-9.02","ghostpdl","ghostscript-9.02","ghostscript-9.01","ghostpdl-9.01","ghostpdl-9.00","ghostpdl-8.71","ghostscript-8.71","ghostpdl-8.70","ghostscript-8.70","ghostpdl-ebuild","ghostpdl-1.54","ghostscript-8.64","ghostpdl-1.53","ghostscript-8.63","ghostscript-8.62","ghostscript-8.61","ghostscript-8.60","ghostscript-8.57","ghostscript-8.56","ghostscript-8.53","ghostscript-8.52","ghostscript-8.51","ghostscript-8.50","ghostscript-8.33","ghostscript-8.32","ghostscript-8.31","ghostscript-8.30","ghostscript-8.12","ghostscript-8.11","ghostscript-8.10","ghostscript-8.15","ghostscript-8.14","ghostscript-8.13","ghostscript-8.00","ghostscript-8.01","ghostscript-7.33","ghostscript-7.32","ghostscript-7.31","ghostscript-7.30","ghostscript-7.22","ghostscript-7.21","ghostscript-7.20","ghostscript-7.03","ghostscript-7.04","ghostscript-7.02","ghostscript-7.00","ghostscript-6.64","ghostscript-6.63","ghostscript-6.62","ghostscript-6.61","ghostscript-6.60","ghostscript-6.30","ghostscript-6.50","ghostscript-6.32","ghostscript-6.31","ghostscript-6.23","ghostscript-6.22","ghostscript-6.21","ghostscript-6.20","ghostscript-6.01","ghostscript-6.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39919.json","vanir_signatures_modified":"2026-09-17T08:08:34Z","vanir_signatures":[{"source":"https://github.com/artifexsoftware/ghostpdl/commit/0a8bf88e39db07b0751a58d6ec1cf992073e4dc1","target":{"file":"base/sjpx_openjpeg.c"},"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"}]}},{"ranges":[{"type":"GIT","repo":"https://github.com/artifexsoftware/ghostpdl-downloads","events":[{"introduced":"0"},{"fixed":"b084b535a1f5e10d23d34f23a0ea057bb67d8f9d"}],"database_specific":{"source":"REFERENCES"}}],"versions":["gs10080rc1","gs10071","gs10071rc1","gs10070","gs10070rc1","gs10060","gs10.07.0rc1","gs10.06.0","gs10060rc2","gs10060rc1","gs10051","gs100501","gs10050","gs10050rc1","gs10040","gs10040rc1","gs10031","10.03.1","gs10030","gs10030rc1","gs10021","gs10020","gs10020rc2","gs10020rc1","gs10012","gs10010rc1","gs10011","gs1001","gs10010","gs10010rc2","gs1000","gs9561","gs1000rc2","gs10.0.0rc1","gs9560","gs9560rc2","gs9560rc1","gs9550","ghostpdl-9.55","gs9550rc1","gs9540","gpdf_beta1","gpdf_alpha2","gpdf_alpha1","gs9533","9.54.0rc1","gs9532","gs9531","gs9530","gs952","ghostpdl-9.53.0rc2","ghostpdl-9.53.0rc1","gs951","ghostpdl-9.51","gs951rc3","ghostpdl-9.51rc2","gs950","gs928rc4","gs928rc3","gs928rc2","gs928rc1","gs927","gs9.27","9.27","gs926","gs9.26rc1","9.27rc1","gs925rc1","gs925","gs924rc2","gs924","gs923rc1","gs923","gs922","gs922rc2","gs922rc1","gs921","gs920","9.21rc1","gs920rc1","gs919","gs918"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-39919.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","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"}]}