{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0a8bf88e39db07b0751a58d6ec1cf992073e4dc1"
            }
          ],
          "repo": "https://github.com/artifexsoftware/ghostpdl",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b084b535a1f5e10d23d34f23a0ea057bb67d8f9d"
            }
          ],
          "repo": "https://github.com/artifexsoftware/ghostpdl-downloads",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39919.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "10.08.0"
          }
        ],
        "source": "AFFECTED_FIELD"
      },
      {
        "extracted_events": [
          {
            "fixed": "10.08.0"
          }
        ],
        "source": "DESCRIPTION"
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-39919",
  "modified": "2026-09-17T03:30:47.716123348Z",
  "published": "2026-09-15T14:26:06.697Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs10080"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39919.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-39919"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/ghostscript-heap-buffer-overflow-via-jpeg-2000-output-adapter"
    },
    {
      "type": "REPORT",
      "url": "https://bugs.ghostscript.com/show_bug.cgi?id=709666"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ArtifexSoftware/ghostpdl/commit/0a8bf88e39db07b0751a58d6ec1cf992073e4dc1"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Ghostscript \u003c 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter"
}