{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.2.0"
              },
              {
                "fixed": "1.5.7-14"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "1c4e5a6c3ce8458095225d987d669e6a0937734a"
            },
            {
              "fixed": "3216860eea289fbbae0b191c0a4fd8b72dad949c"
            }
          ],
          "repo": "https://github.com/luben/zstd-jni",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-ff36-7w3w-g8rm"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87795.json"
  },
  "details": "zstd-jni versions before 1.5.7-14 fail to validate offset and length parameters in the ZstdDictCompress constructor, allowing out-of-bounds memory reads. Attackers can supply untrusted offset or length values to read native heap memory into the compression dictionary, typically causing JVM crashes.",
  "id": "CVE-2026-87795",
  "modified": "2026-09-12T03:30:19.841133130Z",
  "published": "2026-09-09T10:07:28.656Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://repo1.maven.org/maven2/com/github/luben/zstd-jni/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87795.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/luben/zstd-jni/security/advisories/GHSA-ff36-7w3w-g8rm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-87795"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/zstd-jni-1.2.0-through-1.5.7-13-out-of-bounds-read-via-zstddictcompress"
    },
    {
      "type": "FIX",
      "url": "https://github.com/luben/zstd-jni/commit/0d64de4dee6606ff506be36c7f2e714ad0c80fdb"
    },
    {
      "type": "FIX",
      "url": "https://github.com/luben/zstd-jni/commit/1c4e5a6c3ce8458095225d987d669e6a0937734a"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/luben/zstd-jni"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/ZstdDictCompress.java"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_fast_zstd.c"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "zstd-jni 1.2.0 through 1.5.7-13 Out-of-Bounds Read via ZstdDictCompress"
}