CVE-2026-76101
keystore-go: Keystore integrity and password verification bypass via stripped trailing digest in Decode(), impacting legacy v2 versions
- 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
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Go | github.com/pavel-v-chernykh/keystore-go | <= 2.1.0 | — |
| Go | github.com/pavel-v-chernykh/keystore-go/v3 | < 3.0.0 | 3.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
- https://github.com/pavlo-v-chernykh/keystore-go/security/advisories/GHSA-j282-pjg5-j643 x_refsource_CONFIRM
- https://github.com/pavlo-v-chernykh/keystore-go/commit/af93effd832cf1aef7794e69c31e1b668e17b851 x_refsource_MISC
- https://github.com/pavlo-v-chernykh/keystore-go/releases/tag/v3.0.0 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76101.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-76101 advisory
- https://github.com/advisories/GHSA-j282-pjg5-j643 other