← VULNERABILITIES

CVE-2026-76101

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

High · 7.1Fix available
CVSS
7.1
EPSS
0.09% (p0)
Published
2026-11-18
Age
16d old
Modified
2026-11-26
Product
pavlo-v-chernykh keystore-go
Aliases
GHSA-j282-pjg5-j643, GO-2026-7002

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

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.

Fixed in

3.0.0

Affected packages

EcosystemPackageRangeFixed
Gogithub.com/pavel-v-chernykh/keystore-go<= 2.1.0—
Gogithub.com/pavel-v-chernykh/keystore-go/v3< 3.0.03.0.0

Sources

  • NVD · first seen 16d ago · NVD terms of use
  • OSV · first seen 16d ago · CC-BY 4.0
  • GitHub Advisory Database · first seen 15d ago · CC-BY 4.0
  • CVE List · first seen 16d ago · CVE Terms of Use

References

JSON