Read the docs

Integrity check bypass in keystore-go Decode function

Priority HIGH 66CWE-252Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-347.

Summary

keystore-go 2.1.0 and earlier, a Go implementation of the Java KeyStore encoder and decoder, does not check the error returned when reading the trailing SHA-1 integrity digest (CWE-252). If a user with write access removes the final 20-byte digest from a JKS file, Decode returns the keystore without an error, so tamper detection and password verification are bypassed for certificate-only stores. An attacker can then add or replace trusted CA certificates without the keystore password, which may allow interception of TLS connections that trust the forged CA.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00069 0th percentileScored 2026-11-30
Fix Fixed keystore-go (pavlo-v-chernykh): 3.0.0github.com/pavel-v-chernykh/keystore-go/v3 (Go): 3.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
pavlo-v-chernykhkeystore-gobefore 3.0.03.0.0Patch availableCNA
—github.com/pavel-v-chernykh/keystore-go (Go)up to 2.1.0—No fix listedGHSA-j282-pjg5-j643
—github.com/pavel-v-chernykh/keystore-go/v3 (Go)before 3.0.03.0.0Patch availableGHSA-j282-pjg5-j643
  • keystore-go Vendorpavlo-v-chernykh Affected before 3.0.0 Fixed in 3.0.0 Patch available CNA
  • github.com/pavel-v-chernykh/keystore-go (Go) Vendor— Affected up to 2.1.0 Fixed in — No fix listed GHSA-j282-pjg5-j643
  • github.com/pavel-v-chernykh/keystore-go/v3 (Go) Vendor— Affected before 3.0.0 Fixed in 3.0.0 Patch available GHSA-j282-pjg5-j643

Remediation

Upgrade keystore-go to version 3.0.0, which fixes the issue. The sources list no fixed version for github.com/pavel-v-chernykh/keystore-go.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

  • Fix · CNA keystore-go (pavlo-v-chernykh) Fixed in 3.0.0
  • Fix · GHSA-j282-pjg5-j643 github.com/pavel-v-chernykh/keystore-go/v3 (Go) Fixed in 3.0.0 Advisory →

Timeline

  1. 2026-11-18 Threatist record created from CVE-2026-76101
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-19 Alias added: GHSA-j282-pjg5-j643
  4. 2026-11-19 Fix available: Go/github.com/pavel-v-chernykh/keystore-go/[email protected] · GHSA-j282-pjg5-j643
  5. 2026-11-19 CVSS score added · GHSA-j282-pjg5-j643
  6. 2026-11-19 Weakness changed · GHSA-j282-pjg5-j643
  7. 2026-11-19 5 new references · GHSA-j282-pjg5-j643

References

Sources