{"id":"UBUNTU-CVE-2026-87877","details":"zstd-jni versions before 1.5.7-14 fail to validate closed state in setDict, setLongMax, setLevel and setRefMultipleDDicts methods of stream classes. Attackers can call these methods on closed streams to write through freed native pointers, corrupting unrelated objects or crashing the JVM.","modified":"2026-10-17T13:01:15.154511251Z","published":"2026-09-09T15:17:00Z","upstream":["CVE-2026-87877"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-87877"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-87877"},{"type":"REPORT","url":"https://github.com/luben/zstd-jni/security/advisories/GHSA-2jw3-mg7f-vw4q"}],"affected":[{"package":{"name":"zstd-jni-java","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/zstd-jni-java?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.2-5+ds-3","1.5.2-5+ds-3build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.5.2-5+ds-3build1","binary_name":"libzstd-jni-java"},{"binary_name":"libzstd-jni1","binary_version":"1.5.2-5+ds-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87877.json"}},{"package":{"name":"zstd-jni-java","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/zstd-jni-java?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.2-5+ds-8"],"ecosystem_specific":{"binaries":[{"binary_name":"libzstd-jni-java","binary_version":"1.5.2-5+ds-8"},{"binary_name":"libzstd-jni1","binary_version":"1.5.2-5+ds-8"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87877.json"}},{"package":{"name":"zstd-jni-java","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/zstd-jni-java?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.2-5+ds-7","1.5.2-5+ds-7build1","1.5.2-5+ds-7ubuntu1","1.5.2-5+ds-8"],"ecosystem_specific":{"binaries":[{"binary_name":"libzstd-jni-java","binary_version":"1.5.2-5+ds-8"},{"binary_version":"1.5.2-5+ds-8","binary_name":"libzstd-jni1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87877.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}