CVE-2026-39919 Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
14 packages: 14 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/ghostscript(Alpine v3.21) | < 10.08.0-r0 | 10.08.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.22) | < 10.08.0-r0 | 10.08.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.23) | < 10.08.0-r0 | 10.08.0-r0 | Fixed |
| alpine/ghostscript(Alpine v3.24) | < 10.08.0-r0 | 10.08.0-r0 | Fixed |
| Artifex Software Ghostscript | < 10.08.0 | 10.08.0 | Fixed |
| debian/ghostscript(Debian 12) | < 10.0.0~dfsg-11+deb12u9; = 10.0.0~dfsg-11; = 10.0.0~dfsg-11+deb12u1; = 10.0.0~dfsg-11+deb12u2 +6 more | 10.0.0~dfsg-11+deb12u9 | Fixed |
| debian/ghostscript(Debian 13) | < 10.05.1~dfsg-1+deb13u2; = 10.05.1~dfsg-1; = 10.05.1~dfsg-1+deb13u1 | 10.05.1~dfsg-1+deb13u2 | Fixed |
| debian/ghostscript(Debian 14) | < 10.08.0~dfsg-1; = 10.05.1~dfsg-1; = 10.05.1~dfsg-2; = 10.05.1~dfsg-3 +6 more | 10.08.0~dfsg-1 | Fixed |
| redhat/ghostscript(Red Hat enterprise_linux 10.2) | < 10.02.1-16.el10_2.1 | 10.02.1-16.el10_2.1 | Fixed |
| redhat/ghostscript(Red Hat enterprise_linux 8) | < 9.27-18.el8_10 | 9.27-18.el8_10 | Fixed |
| redhat/ghostscript(Red Hat enterprise_linux 9) | < 9.54.0-19.el9_8.1 | 9.54.0-19.el9_8.1 | Fixed |
| ubuntu/ghostscript(Ubuntu 22.04) | < 9.55.0~dfsg1-0ubuntu5.14 | 9.55.0~dfsg1-0ubuntu5.14 | Fixed |
| ubuntu/ghostscript(Ubuntu 24.04) | < 10.02.1~dfsg1-0ubuntu7.9 | 10.02.1~dfsg1-0ubuntu7.9 | Fixed |
| ubuntu/ghostscript(Ubuntu 26.04) | < 10.06.0~dfsg-3ubuntu1.1 | 10.06.0~dfsg-3ubuntu1.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Artifex Software Ghostscript | < 10.08.0 | 10.08.0 |
| redhat/ghostscript(Red Hat:enterprise_linux:10.2) | < 10.02.1-16.el10_2.1 | 10.02.1-16.el10_2.1 |
| redhat/ghostscript(Red Hat:enterprise_linux:8) | < 9.27-18.el8_10 | 9.27-18.el8_10 |
| redhat/ghostscript(Red Hat:enterprise_linux:9) | < 9.54.0-19.el9_8.1 | 9.54.0-19.el9_8.1 |
| redhat/ghostscript(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/ghostscript(Red Hat:rhel_els:7) | All versions | No fix listed |
| ubuntu/ghostscript(Ubuntu:22.04) | < 9.55.0~dfsg1-0ubuntu5.14 | 9.55.0~dfsg1-0ubuntu5.14 |
| ubuntu/ghostscript(Ubuntu:24.04) | < 10.02.1~dfsg1-0ubuntu7.9 | 10.02.1~dfsg1-0ubuntu7.9 |
| ubuntu/ghostscript(Ubuntu:26.04) | < 10.06.0~dfsg-3ubuntu1.1 | 10.06.0~dfsg-3ubuntu1.1 |
| debian/ghostscript(Debian:12) | < 10.0.0~dfsg-11+deb12u9 | 10.0.0~dfsg-11+deb12u9 |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u1 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u2 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u3 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u4 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u5 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u6 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u7 | No fix listed |
| debian/ghostscript(Debian:12) | = 10.0.0~dfsg-11+deb12u8 | No fix listed |
| debian/ghostscript(Debian:13) | < 10.05.1~dfsg-1+deb13u2 | 10.05.1~dfsg-1+deb13u2 |
| debian/ghostscript(Debian:13) | = 10.05.1~dfsg-1 | No fix listed |
| debian/ghostscript(Debian:13) | = 10.05.1~dfsg-1+deb13u1 | No fix listed |
| debian/ghostscript(Debian:14) | < 10.08.0~dfsg-1 | 10.08.0~dfsg-1 |
| debian/ghostscript(Debian:14) | = 10.05.1~dfsg-1 | No fix listed |
| debian/ghostscript(Debian:14) | = 10.05.1~dfsg-2 | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/ghostscript(Debian:14) | = 10.05.1~dfsg-3 | No fix listed |
| debian/ghostscript(Debian:14) | = 10.06.0~dfsg-1 | No fix listed |
| debian/ghostscript(Debian:14) | = 10.06.0~dfsg-2 | No fix listed |
| debian/ghostscript(Debian:14) | = 10.06.0~dfsg-3 | No fix listed |
| debian/ghostscript(Debian:14) | = 10.07.0~dfsg-1 | No fix listed |
| debian/ghostscript(Debian:14) | = 10.07.0~dfsg-2 | No fix listed |
| debian/ghostscript(Debian:14) | = 10.07.1~dfsg-1 | No fix listed |
| alpine/ghostscript(Alpine:v3.21) | < 10.08.0-r0 | 10.08.0-r0 |
| alpine/ghostscript(Alpine:v3.22) | < 10.08.0-r0 | 10.08.0-r0 |
| alpine/ghostscript(Alpine:v3.23) | < 10.08.0-r0 | 10.08.0-r0 |
| alpine/ghostscript(Alpine:v3.24) | < 10.08.0-r0 | 10.08.0-r0 |
References
- Ghostscript 10.08.0 (gs10080) Release Notes release-notes
- Patch Commit patch
- Bugzilla Report issue-tracking
- www.vulncheck.com third-party-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:74464 patch vendor-advisory
- RHSA-2026:76877 patch vendor-advisory
- RHSA-2026:74457 patch vendor-advisory
- Red Hat Bugzilla 2533857 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-39919 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8791-1 vendor-advisory
- security.alpinelinux.org vendor-advisory
- ENISA EUVD EUVD-2026-78584 third-party-advisory