Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 3 fixed, 2 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-122 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA Ghostscript (Artifex Software) Fixed in 10.08.0
Red Hat 3 advisories
- RHSA-2026:76877 Released 2026-10-06 · Red Hat rating Moderateghostscript security update
- Red Hat Enterprise Linux AppStream (v. 8) ghostscript-9.27-18.el8_10, libgs-9.27-18.el8_10
- RHSA-2026:74457 Released 2026-10-02 · Red Hat rating Moderateghostscript security update
- Red Hat Enterprise Linux AppStream (v. 9) libgs-9.54.0-19.el9_8.1
- RHSA-2026:74464 Released 2026-10-01 · Red Hat rating Moderateghostscript security update
- Red Hat Enterprise Linux AppStream (v. 10) libgs-10.02.1-16.el10_2.1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:74464 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2026:76877 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:74457 |
Not affected: 6 products
- Red Hat Enterprise Linux AppStream (v. 10)
- Red Hat Enterprise Linux AppStream (v. 8)
- Red Hat Enterprise Linux AppStream (v. 9)
- Red Hat Enterprise Linux CRB (v. 8)
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10)
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9)
Timeline
- 2026-10-02 Threatist record created from CVE-2026-39919
- 2026-10-03 Alias added: GHSA-v865-hp77-22rm
- 2026-10-06 EPSS moved to the 50th–90th percentile
- 2026-10-07 Fix available: RHSA-2026:76877 · Red Hat
- 2026-10-07 Fix available: Red Hat Enterprise Linux AppStream (v. 8) · Red Hat
References
More Artifex vulnerabilities
- TI-2017-05861 Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution… KEVCVSS 3.1HIGH 7.8
- TI-2021-02712 Improper input validation in ghostscript CVSS 3.1CRITICAL 9.9
- TI-2023-13382 In Artifex Ghostscript through 10.01.0, there is a buffer overflow leading to potential… CVSS 3.1CRITICAL 9.8
- TI-2021-13164 Memory corruption in mujs CVSS 3.1CRITICAL 9.8
- TI-2018-11841 An issue was discovered in Artifex Ghostscript before 9.24. CVSS 3.0HIGH 7.8
- TI-2024-16051 freeglut through 3.4.0 was discovered to contain a memory leak via the menuEntry variable… CVSS 3.1HIGH 7.5
Sources
- CVE-2026-39919 · CVE Program
- CVE-2026-39919 · NVD
- FIRST EPSS
- GHSA-v865-hp77-22rm · GitHub Advisory Database · CC BY 4.0
- CVE-2026-39919 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences