Skip to main content
CVE-2026-39919VulnerabilityPublished Updated

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

Affects ghostscriptSource GCVE Database

0
Compare
Authoritative record:CVE-2026-39919· Critical 9.3

Not known to be exploited · CVSS 9.3 Critical · fixed in 9.55.0~dfsg1-0ubuntu5.14 : patch ghostscript as a priority.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 4.0 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 9.55.0~dfsg1-0ubuntu5.14, 10.02.1~dfsg1-0ubuntu7.9, 10.06.0~dfsg-3ubuntu1.1
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu ghostscript to 9.55.0~dfsg1-0ubuntu5.14 (package) or 10.02.1~dfsg1-0ubuntu7.9 (package) or 10.06.0~dfsg-3ubuntu1.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=resoluteOther threatsAffected
  • <10.06.0~dfsg-3ubuntu1.1
Fixed in
  • 10.06.0~dfsg-3ubuntu1.1
Ubuntu 24.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=nobleOther threatsAffected
  • <10.02.1~dfsg1-0ubuntu7.9
Fixed in
  • 10.02.1~dfsg1-0ubuntu7.9
Ubuntu 22.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=jammyOther threatsAffected
  • <9.55.0~dfsg1-0ubuntu5.14
Fixed in
  • 9.55.0~dfsg1-0ubuntu5.14
Ubuntu Pro 20.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=esm-infra/focalOther threatsAffected
  • 9.27~dfsg+0-0ubuntu3 – 9.50~dfsg-5ubuntu4.15+esm3
24 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=esm-infra/bionicOther threatsAffected
  • 9.21~dfsg+1-0ubuntu3 – 9.26~dfsg+0-0ubuntu0.18.04.18+esm6
29 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSghostscriptpkg:deb/ubuntu/ghostscript?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • 9.16~dfsg~0-0ubuntu3 – 9.26~dfsg+0-0ubuntu0.16.04.14+esm11
38 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…