CVE-2026-76101: keystore-go: Keystore integrity and password verification bypass via stripped trailing digest in Decode()
Published 2026-11-19 · Updated 2026-11-23 · Also known as GHSA-j282-pjg5-j643, GO-2026-7002
Summary
A flaw in the keystore-go library fails to inspect errors or loop bounds when reading the trailing integrity digest of JKS files. Engineering teams using legacy versions of github.com/pavel-v-chernykh/keystore-go must migrate to v3 or v4.
Who is affected
Affected deployments are applications utilizing `keystore.Decode()` to load Java KeyStore (JKS) files where integrity or password protection relies on the trailing SHA-1 digest. An attacker with local write access to the keystore file can strip the final 20 bytes and modify trusted CA certificates without knowing the keystore password. This enables silent certificate injection, potentially leading to man-in-the-middle attacks on TLS connections depending on the truststore.
Exploitability
The vulnerability requires local file write access to the keystore (AV:L, PR:L) with low complexity (AC:L) and requires no user interaction (UI:N). The base score is 7.1 (HIGH), EPSS is 0.001 (percentile 0.003), and CISA KEV status is no.
Remediation
- Migrate from legacy `github.com/pavel-v-chernykh/keystore-go` (v2.1.0 and earlier) to `github.com/pavel-v-chernykh/keystore-go/v3` (version 3.0.0 or later), `github.com/pavel-v-chernykh/keystore-go/v4`, or `github.com/pavlo-v-chernykh/keystore-go/v4`.
- Ensure any JKS parsing dependencies reference the patched module paths where the error inspection and digest comparison checks are correctly implemented.
How to check your project
- Inspect `go.mod` files to identify if dependencies include `github.com/pavel-v-chernykh/keystore-go` at versions <= v2.1.0+incompatible.
- Search codebase imports for references to the legacy `github.com/pavel-v-chernykh/keystore-go` module path.
Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/pavel-v-chernykh/keystore-go |
>= 0, <= 2.1.0 | not published | - |
| Go | github.com/pavel-v-chernykh/keystore-go |
>= 0 (no fix published) | not published | - |
| Go | github.com/pavel-v-chernykh/keystore-go/v3 |
>= 0, < 3.0.0 | 3.0.0 | go get github.com/pavel-v-chernykh/keystore-go/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | None |
FAQ
Does an attacker need the keystore password to exploit this vulnerability?
No. An attacker can bypass password verification and integrity checks entirely by removing the final 20 bytes from the `.jks` file.
Are v3 and v4 of keystore-go affected?
No, v3 and v4 releases incorporate the fix and are not impacted.
Is there a patched version available on the original bare module path?
No. Every release on the bare `github.com/pavel-v-chernykh/keystore-go` path predates the fix, meaning users must migrate to the v3 or v4 successor module paths.
Original advisory description
References
- WEB https://github.com/pavlo-v-chernykh/keystore-go/security/advisories/GHSA-j282-pjg5-j643
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-76101
- WEB https://github.com/pavlo-v-chernykh/keystore-go/commit/af93effd832cf1aef7794e69c31e1b668e17b851
- PACKAGE https://github.com/pavlo-v-chernykh/keystore-go
- WEB https://github.com/pavlo-v-chernykh/keystore-go/releases/tag/v3.0.0
Source records: GHSA-j282-pjg5-j643, GO-2026-7002 (OSV.dev) · EPSS by FIRST, 2026-11-23.