{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-87877",
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "state": "PUBLISHED",
        "assignerShortName": "VulnCheck",
        "dateReserved": "2026-09-09T14:02:07.708Z",
        "datePublished": "2026-09-09T14:32:45.512Z",
        "dateUpdated": "2026-09-09T15:57:53.652Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
                "shortName": "VulnCheck",
                "dateUpdated": "2026-09-09T14:32:45.512Z"
            },
            "datePublic": "2026-08-19T00:00:00.000Z",
            "title": "zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "Use After Free",
                            "cweId": "CWE-416",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "luben",
                    "product": "zstd-jni",
                    "collectionURL": "https://repo1.maven.org/maven2/com/github/luben/zstd-jni/",
                    "repo": "https://github.com/luben/zstd-jni",
                    "defaultStatus": "unaffected",
                    "packageURL": "pkg:maven/com.github.luben/zstd-jni",
                    "versions": [
                        {
                            "version": "1.3.8-4",
                            "lessThan": "1.5.7-14",
                            "status": "affected",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV4_0": {
                        "version": "4.0",
                        "vectorString": "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",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 7,
                        "baseSeverity": "HIGH"
                    }
                },
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "HIGH",
                        "baseScore": 7.7,
                        "baseSeverity": "HIGH"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/luben/zstd-jni/security/advisories/GHSA-2jw3-mg7f-vw4q",
                    "tags": [
                        "vendor-advisory"
                    ],
                    "name": "GitHub Security Advisory (GHSA-2jw3-mg7f-vw4q)"
                },
                {
                    "url": "https://github.com/luben/zstd-jni/commit/f38f9a1563113d96d0fc38baee543f7457dd8a8e",
                    "tags": [
                        "patch"
                    ],
                    "name": "Fix commit: closed-state guards on BaseZstdBufferDecompressingStreamNoFinalizer"
                },
                {
                    "url": "https://github.com/luben/zstd-jni/commit/393d7311766abbc285b149302c0fe1f94b16d555",
                    "tags": [
                        "patch"
                    ],
                    "name": "Fix commit: closed-state guards on the input and output stream setters"
                },
                {
                    "url": "https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/BaseZstdBufferDecompressingStreamNoFinalizer.java",
                    "tags": [
                        "technical-description"
                    ],
                    "name": "Setters without the closed-state guard that readInternal already has, at v1.5.7-13"
                },
                {
                    "url": "https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/ZstdInputStreamNoFinalizer.java",
                    "tags": [
                        "technical-description"
                    ],
                    "name": "final stream handle retained after close at v1.5.7-13"
                },
                {
                    "url": "https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14",
                    "tags": [
                        "release-notes"
                    ],
                    "name": "zstd-jni v1.5.7-14 Release Notes"
                },
                {
                    "url": "https://github.com/luben/zstd-jni/commit/0827ed02551bbd8d6f8e4bbff99d83bf50f91938",
                    "tags": [
                        "technical-description",
                        "patch"
                    ],
                    "name": "Commit that made setDict write through the retained native stream handle (first released in 1.3.8-4)"
                },
                {
                    "url": "https://github.com/luben/zstd-jni",
                    "tags": [
                        "product"
                    ]
                },
                {
                    "name": "VulnCheck Advisory: zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()",
                    "tags": [
                        "third-party-advisory"
                    ],
                    "url": "https://www.vulncheck.com/advisories/zstd-jni-1.3.8-4-through-1.5.7-13-use-after-free-via-setters-called-after-close"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Yu Bao, PayPal Cyber Security Team",
                    "type": "finder"
                }
            ],
            "x_generator": {
                "engine": "vulncheck-endgame"
            },
            "source": {
                "discovery": "EXTERNAL"
            }
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://github.com/luben/zstd-jni/security/advisories/GHSA-2jw3-mg7f-vw4q",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-09-09T15:57:38.917828Z",
                                "id": "CVE-2026-87877",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-09-09T15:57:53.652Z"
                }
            }
        ]
    }
}