{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-87877 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-87877 is a high-severity use after free vulnerability in luben zstd-jni, published on 9 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-87877 and fix it if it is affected.\n\nWhat it is: CVE-2026-87877 is a high-severity use after free vulnerability in luben zstd-jni, published on 9 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-87877 exists.\n\nAffected product: luben zstd-jni. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-87877/ (Markdown: https://insights.sbomify.com/CVE-2026-87877/index.md)","id":"CVE-2026-87877","markdown":"https://insights.sbomify.com/CVE-2026-87877/index.md","name":"CVE-2026-87877","record":{"aliases":["CLEANSTART-2026-BT92518","CLEANSTART-2026-BW94904","CLEANSTART-2026-FB66961","CLEANSTART-2026-GA54937","CLEANSTART-2026-LQ70759","CLEANSTART-2026-ZY12468","DEBIAN-CVE-2026-87877","GHSA-2jw3-mg7f-vw4q","GHSA-mwq5-v3w5-qr6v","UBUNTU-CVE-2026-87877"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java zstd compression library","requires_auth":"none","summary":"Attackers can trigger use-after-free in zstd-jni by calling setters on closed streams, leading to JVM crashes or potential code execution.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":7,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()","id":"CVE-2026-87877","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"use_after_free","year":"2026"},"n_packages":0,"n_references":9,"next":{"headline":"Linux binaries have executable stack attribute enabled.","id":"CVE-2026-87878"},"packages":[],"prev":{"headline":"Auth bypass in Red Hat Enterprise Linux 10","id":"CVE-2026-87876"},"products":["zstd-jni"],"published":"2026-09-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-09","vendors":["luben"]},"summary":"Attackers can trigger use-after-free in zstd-jni by calling setters on closed streams, leading to JVM crashes or potential code execution.","url":"https://insights.sbomify.com/CVE-2026-87877/"}