CVE-2026-39919
Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter
Reported by vulncheck · Published September 15, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ghostscript-tools-fonts | Amazon Linux | 9.56.1-7.amzn2023.0.20 |
| ghostscript-tools-dvipdf | errata.rockylinux.org | 10.02.1-16.el10 |
| ghostscript-tools-fonts | errata.rockylinux.org | 10.02.1-16.el10 |
| ghostscript-debuginfo | errata.rockylinux.org | 10.02.1-16.el10, 9.27-18.el8 |
| libgs | errata.rockylinux.org | 9.54.0-19.el9, 9.27-18.el8 |
| ghostscript-tools-printing | errata.rockylinux.org | 10.02.1-16.el10 |
| ghostscript | errata.rockylinux.org | 10.02.1-16.el10 |
| ghostscript-doc | errata.rockylinux.org | 10.02.1-16.el10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Artifex Software | Ghostscript | 0 |
| amazon:2023 | ghostscript-tools-fonts | 0 |
| artifex | ghostscript | 0 |
| alpine | ghostscript | 0 |
| amazon:2 | libgs | 0 |
| amazon:2 | ghostscript | 0 |
| amazon:2023 | ghostscript-doc | 0 |
| amazon:2023 | ghostscript | 0 |
| amazon:2023 | ghostscript-tools-dvipdf | 0 |
| Artifex Software | Ghostscript | 0 |
| amazon:2023 | ghostscript-gtk | 0 |
| amazon:2023 | ghostscript-tools-printing | 0 |
| amazon:2 | ghostscript-gtk | 0 |
| amazon:2023 | ghostscript-x11 | 0 |
| amazon:2 | libgs-devel | 0 |
| amazon:2 | ghostscript-cups | 0 |
| amazon:2023 | libgs-devel | 0 |
| amazon:2023 | libgs | 0 |
| amazon:2 | ghostscript-doc | 0 |
Timeline
- Sep 15, 2026 Coalition ESS Score
- Sep 15, 2026 CVE Published
- Sep 16, 2026 EPSS Score (24 in total, the first dated here)
- Sep 24, 2026 CVE Updated
- Oct 2, 2026 Distribution Patch (5 in total, the first dated here)
- Oct 2, 2026 Security Advisory (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-39919
vulnetix vdb fixes CVE-2026-39919
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-39919/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Ghostscript 10.08.0 (gs10080) Release Notes release-notes
- Patch Commit patch
- Bugzilla Report issue-tracking
- third-party-advisory