# CVE-2026-39919: Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.85%, higher than 59% of CVEs (2026-12-01)
- Published: 2026-09-15T14:26:06.697Z
- Modified: 2026-10-01T15:19:56.598Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Artifex Software Ghostscript: before 10.08.0

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `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`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs10080> (release-notes)
- <https://github.com/ArtifexSoftware/ghostpdl/commit/0a8bf88e39db07b0751a58d6ec1cf992073e4dc1> (patch)
- <https://bugs.ghostscript.com/show_bug.cgi?id=709666> (issue-tracking)
- <https://www.vulncheck.com/advisories/ghostscript-heap-buffer-overflow-via-jpeg-2000-output-adapter> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-39919](https://www.cve.org/CVERecord?id=CVE-2026-39919), CVE Terms of Use, modified 2026-10-01
- NVD: [CVE-2026-39919](https://nvd.nist.gov/vuln/detail/CVE-2026-39919), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-39919 · Whole record: https://cve.day/CVE-2026-39919.json · Rebuilt by cve.day 2026-11-25T22:59:38.532Z
