CVE-2026-76101
High 7.1No known exploitationFix status unknownkeystore-go: Keystore integrity and password verification bypass via stripped trailing digest in Decode(), impacting legacy v2 versions
Vendor advisory: GHSA-j282-pjg5-j643
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 0% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-252, CWE-347, CWE-354
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| go | github.com/pavel-v-chernykh/keystore-go | all versions up to and including 2.1.0 | Not documented | GitHub Advisory Database |
| go | github.com/pavel-v-chernykh/keystore-go/v3 | all versions before 3.0.0 | 3.0.0 | GitHub Advisory Database |
| pavlo-v-chernykh | keystore-go | < 3.0.0 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Vendor guidance and references
- GitHub Advisory GHSA-j282-pjg5-j643 (opens in a new tab)github-advisory
- https://github.com/pavlo-v-chernykh/keystore-go/commit/af93effd832cf1aef7794e69c31e1b668e17b851 (opens in a new tab)x_refsource_misc
- https://github.com/pavlo-v-chernykh/keystore-go/releases/tag/v3.0.0 (opens in a new tab)x_refsource_misc
- https://github.com/pavlo-v-chernykh/keystore-go/security/advisories/GHSA-j282-pjg5-j643 (opens in a new tab)x_refsource_confirm