CVE-2026-76101

GHSA-j282-pjg5-j643 · published 18 Nov 2026 · updated 19 Nov 2026

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

7.1HighCVSS 7.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in github.com/pavel-v-chernykh/keystore-go/v3 3.0.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pavlo-v-chernykh<3.0.0
go: github.com/pavel-v-chernykh/keystore-go<=2.1.0
go: github.com/pavel-v-chernykh/keystore-go/v3<3.0.03.0.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-76101 severity on Zeptric[![CVE-2026-76101](https://zeptric.io/badge/cve/CVE-2026-76101.svg)](https://zeptric.io/cve/CVE-2026-76101)