# CVE-2026-76101: keystore-go: Keystore integrity and password verification bypass via stripped trailing digest in Decode(), impacting legacy v2 versions

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.09%, higher than 0% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-18T21:49:15.228Z
- Modified: 2026-11-23T20:41:22.536Z
- Also known as: GHSA-j282-pjg5-j643, GO-2026-7002
- Weaknesses: CWE-252, CWE-347, CWE-354
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

keystore-go is a Go implementation of the Java KeyStore encoder and decoder. In 2.1.0 and earlier, keystore.Decode in decoder.go does not check the error returned when reading the trailing SHA-1 integrity digest and bounds its comparison by the length of the digest actually read. If an attacker with write access removes the final 20-byte digest from a modified JKS file, the empty actual digest causes the comparison loop to execute zero times and Decode returns the parsed keystore without an error. For certificate-only stores using TrustedCertificateEntry values, this bypasses both tamper detection and password verification, allowing trusted CA certificates to be added or replaced without knowing the keystore password and potentially enabling interception or modification of TLS connections that trust the forged CA. This issue is fixed in version 3.0.0.

(As written by CVE List.)

## Affected

- pavlo-v-chernykh keystore-go: < 3.0.0
- github.com/pavel-v-chernykh/keystore-go (Go): up to 2.1.0; all versions
- github.com/pavel-v-chernykh/keystore-go/v3 (Go): before 3.0.0

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/pavlo-v-chernykh/keystore-go/security/advisories/GHSA-j282-pjg5-j643> (exploit, advisory, web)
- <https://github.com/pavlo-v-chernykh/keystore-go/commit/af93effd832cf1aef7794e69c31e1b668e17b851> (fix, web)
- <https://github.com/pavlo-v-chernykh/keystore-go/releases/tag/v3.0.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-76101> (advisory)
- <https://github.com/pavlo-v-chernykh/keystore-go> (package)

## Sources

- CVE List: [CVE-2026-76101](https://www.cve.org/CVERecord?id=CVE-2026-76101), CVE Terms of Use, modified 2026-11-19
- GitHub Advisory Database: [GHSA-j282-pjg5-j643](https://github.com/advisories/GHSA-j282-pjg5-j643), CC-BY-4.0, modified 2026-11-23
- Go Vulnerability Database: [GO-2026-7002](https://pkg.go.dev/vuln/GO-2026-7002), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-76101](https://nvd.nist.gov/vuln/detail/CVE-2026-76101), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-76101 · Whole record: https://cve.day/CVE-2026-76101.json · Rebuilt by cve.day 2026-11-25T22:59:51.927Z
