CVE-2026-76101

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.
Configurations

No configuration.

History

19 Nov 2026, 20:17

Type Values Removed Values Added
References () https://github.com/pavlo-v-chernykh/keystore-go/security/advisories/GHSA-j282-pjg5-j643 - () https://github.com/pavlo-v-chernykh/keystore-go/security/advisories/GHSA-j282-pjg5-j643 -

18 Nov 2026, 22:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-18 22:17

Updated : 2026-11-19 20:17


NVD link : CVE-2026-76101

Mitre link : CVE-2026-76101

CVE.ORG link : CVE-2026-76101


JSON object : View

Products Affected

No product.

CWE
CWE-252

Unchecked Return Value

CWE-347

Improper Verification of Cryptographic Signature

CWE-354

Improper Validation of Integrity Check Value