---
id: CVE-2026-87825
title: >-
  zstd-jni before 1.5.7-14 contains a use-after-free vulnerability where streams
  and contexts hold a dictionary's shared lock only during the load call,
  allowing the dictionary to be closed while still referenced
summary: >-
  zstd-jni before 1.5.7-14 contains a use-after-free vulnerability where streams
  and contexts hold a dictionary's shared lock only during the load call,
  allowing the dictionary to be closed while still referenced. Attackers can
  close a dic…
severity: high
cvss: 7.7
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'
cwe:
  - CWE-416
  - CWE-825
vendor: luben
product: zstd-jni
affected:
  - zstd-jni >= 1.3.8-4 < 1.5.7-14
published: '2026-09-09'
updated: '2026-09-14'
sourceUpdated: '2026-09-14T14:17:17.937'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87825'
references:
  - url: 'https://github.com/luben/zstd-jni'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/BaseZstdBufferDecompressingStreamNoFinalizer.java
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/ZstdInputStreamNoFinalizer.java
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/luben/zstd-jni/commit/0827ed02551bbd8d6f8e4bbff99d83bf50f91938
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/luben/zstd-jni/commit/393d7311766abbc285b149302c0fe1f94b16d555
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/luben/zstd-jni/commit/a560131d7834598afd9cea6b7c107bc88e915936
    label: disclosure@vulncheck.com
  - url: 'https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/luben/zstd-jni/security/advisories/GHSA-947w-pxjj-c7m9'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/zstd-jni-1.3.8-4-through-1.5.7-13-use-after-free-of-compression-and-decompression-dictionaries
    label: disclosure@vulncheck.com
  - url: 'https://github.com/luben/zstd-jni/security/advisories/GHSA-947w-pxjj-c7m9'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-87825.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-87825'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2531007'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-87825'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87825'
  - url: 'https://access.redhat.com/errata/RHSA-2026:71675'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-14T13:34:20.357216Z'
epss: 0.00196
epssPercentile: 0.08332
ingestedAt: '2026-09-14T15:23:07.419Z'
patched:
  - build_of_apache_camel_4_18_4_for_spring_boot 3.5.16
---

## Overview

zstd-jni before 1.5.7-14 contains a use-after-free vulnerability where streams and contexts hold a dictionary's shared lock only during the load call, allowing the dictionary to be closed while still referenced. Attackers can close a dictionary after associating it with a stream or context, causing subsequent read or write operations to access freed native memory, resulting in silent data corruption or JVM crashes.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Exploit Intelligence, OpenShift Developer Tools and Services, Red Hat build of Apache Camel 4 for Quarkus 3, Red Hat build of Apicurio Registry 3, Red Hat build of Debezium 3, Red Hat Ceph Storage 9, … · no fix planned: Exploit Intelligence, OpenShift Developer Tools and Services, Red Hat build of Apache Camel 4 for Quarkus 3, Red Hat build of Apicurio Registry 3, … · updated 2026-09-24 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-87825.json)
- **RHSA-2026:71675** · Red Hat · fixed in: Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16 · released 2026-09-24 · [advisory](https://access.redhat.com/errata/RHSA-2026:71675)
