Vulnerability in keystore-go Affects Users of Java KeyStore Implementation
CVE-2026-76101
What is CVE-2026-76101?
The keystore-go library, a Go implementation for encoding and decoding Java Keystores, suffers from a significant vulnerability. In versions up to 2.1.0, the Decode function in decoder.go fails to adequately validate the error returned when reading the trailing SHA-1 integrity digest. This oversight allows attackers with write access to a modified Java KeyStore (JKS) file to remove the critical 20-byte digest. Consequently, the empty actual digest causes the comparison process to skip, enabling the Decode function to return a seemingly valid keystore without error. This can lead to a complete bypass of both tamper detection mechanisms and password verification processes, allowing unauthorized CA certificates to be added or replaced without needing to know the keystore password. As such, this may facilitate the interception or modification of TLS connections that rely on the compromised CA.
Affected Version(s)
keystore-go < 3.0.0
