Skip to content

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

HighCVSS 7.1 EPSS 0.09%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 0 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
pavel-v-chernykh github.com/pavel-v-chernykh/keystore-go(Go) < 3.0.0; <= 2.1.0; All versions 3.0.0 Partially fixed
pavlo-v-chernykh keystore-go = < 3.0.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pavlo-v-chernykh keystore-go = < 3.0.0 No fix listed
pavel-v-chernykh github.com/pavel-v-chernykh/keystore-go(Go) <= 2.1.0 No fix listed
pavel-v-chernykh github.com/pavel-v-chernykh/keystore-go(Go) < 3.0.0 3.0.0
pavel-v-chernykh github.com/pavel-v-chernykh/keystore-go(Go) All versions No fix listed

References