CVE-2026-58262: CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go
CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go Vulnerability ID: CVE-2026-58262 CVSS Score: 7.1 Published: 2026-11-23 CVE-2026-58262 (tracked internally as KLR-04 and via Git
CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go
Vulnerability ID: CVE-2026-58262
CVSS Score: 7.1
Published: 2026-11-23
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (klever-io/klever-go), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (HeaderSigVerifier.verifyConsensusSize) counts all set bits across the entire PubKeysBitmap byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (blsMultiSigner.Verify) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
TL;DR
In Klever-Go versions prior to 1.7.20, block header verification counts unused trailing padding bits in PubKeysBitmap toward the two-thirds validator quorum while ignoring them during cryptographic BLS aggregate-signature verification. A malicious block proposer can set these padding bits to commit under-signed blocks without achieving a true two-thirds validator quorum.
Technical Details
- CWE ID: CWE-347 (Improper Verification of Cryptographic Signature) / CWE-345
- Attack Vector: Network (Crafted Block Header PubKeysBitmap by Block Proposer)
- CVSS v4.0 Score: 7.1 High (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N)
- EPSS Score: 0.161% (5.28th Percentile)
- Primary Impact: Consensus Quorum Bypass & Subversion of BFT Block Finality
- Exploit Status: None (No public PoCs or active exploitation)
- CISA KEV Status: Not Listed
- Patched Version: klever-go v1.7.20
Affected Systems
- klever-io/klever-go (Klever Blockchain Protocol Go Implementation)
-
klever-go: < 1.7.20 (Fixed in:
1.7.20)
Code Analysis
Commit: a11cb28
chore: reject bitmaps with non-zero padding bits in quorum check
diff --git a/core/process/headerCheck/errors.go b/core/process/headerCheck/errors.go
index 2fc3c48d0..d6d66c202 100644
--- a/core/process/headerCheck/errors.go
+++ b/core/process/headerCheck/errors.go
@@ -9,6 +9,9 @@ var ErrNotEnoughSignatures = errors.New("not enough signatures in block")
// ErrWrongSizeBitmap signals that the provided bitmap's length is bigger than the one that was required
var ErrWrongSizeBitmap = errors.New("wrong size bitmap has been provided")
+// ErrBitmapWithPaddingNotZero signals that the bitmap has set padding bits beyond the consensus group size
+var ErrBitmapWithPaddingNotZero = errors.New("bitmap has non-zero padding bits beyond the consensus group size")
+
// ErrInvalidReferenceChainID signals that the provided reference chain ID is not valid
var ErrInvalidReferenceChainID = errors.New("invalid reference Chain ID provided")
diff --git a/core/process/headerCheck/headerSignatureVerify.go b/core/process/headerCheck/headerSignatureVerify.go
index 7a0c4178e..4532ea2a7 100644
--- a/core/process/headerCheck/headerSignatureVerify.go
+++ b/core/process/headerCheck/headerSignatureVerify.go
@@ -157,6 +157,18 @@ func (hsv *HeaderSigVerifier) verifyConsensusSize(consensusPubKeys []string, hea
return ErrWrongSizeBitmap
}
+ // Reject bitmaps whose padding bits (positions >= consensusSize in the final byte) are set.
+ // Those positions map to no real validator, but the quorum count below would otherwise count
+ // them as signatures, letting a malicious leader inflate the apparent signer set (KLR-04).
+ if remainder := consensusSize % 8; remainder != 0 {
+ allowedLastByteMask := byte((1 << uint(remainder)) - 1)
+ if bitmap[len(bitmap)-1]&^allowedLastByteMask != 0 {
+ log.Debug("bitmap has non-zero padding bits beyond consensus size",
+ "consensus size", consensusSize)
+ return ErrBitmapWithPaddingNotZero
+ }
+ }
+
numOfOnesInBitmap := 0
for index := range bitmap {
numOfOnesInBitmap += bits.OnesCount8(bitmap[index])
diff --git a/crypto/errors.go b/crypto/errors.go
index 49a9d6636..f3369da6c 100644
--- a/crypto/errors.go
+++ b/crypto/errors.go
@@ -82,6 +82,9 @@ var ErrBitmapMismatch = errors.New("multi signer reported a mismatch in used bit
// ErrNilBitmap is raised when a nil bitmap is used
var ErrNilBitmap = errors.New("bitmap is nil")
+// ErrBitmapPaddingNotZero is raised when a bitmap has set bits beyond the configured public keys
+var ErrBitmapPaddingNotZero = errors.New("bitmap has set padding bits beyond the public key count")
+
// ErrSigNotValid is raised when a signature verification fails due to invalid signature
var ErrSigNotValid = errors.New("signature is invalid")
diff --git a/crypto/signing/multisig/blsMultisig.go b/crypto/signing/multisig/blsMultisig.go
index bd12923aa..928d66e24 100644
--- a/crypto/signing/multisig/blsMultisig.go
+++ b/crypto/signing/multisig/blsMultisig.go
@@ -150,6 +150,19 @@ func (bms *blsMultiSigner) CreateSignatureShare(message []byte, _ []byte) ([]byt
return sigShareBytes, nil
}
+// hasPaddingBitsSet reports whether the bitmap has any set bit at a position that does not map to
+// a configured public key. For consensus sizes that are not a multiple of 8 these padding bits
+// must be zero; otherwise a caller could inflate the apparent signer set (KLR-04).
+func hasPaddingBitsSet(bitmap []byte, numPubKeys int) bool {
+ for bitIndex := numPubKeys; bitIndex < len(bitmap)*8; bitIndex++ {
+ if bitmap[bitIndex/8]&(1<<uint8(bitIndex%8)) != 0 { // #nosec G115 - bitIndex%8 is always < 8
+ return true
+ }
+ }
+
+ return false
+}
+
// not concurrent safe, should be used under RLock mutex
func (bms *blsMultiSigner) isIndexInBitmap(index uint16, bitmap []byte) error {
indexOutOfBounds := index >= uint16(len(bms.data.pubKeys)) // #nosec G115
@@ -236,6 +249,10 @@ func (bms *blsMultiSigner) AggregateSigs(bitmap []byte) ([]byte, error) {
return nil, crypto.ErrBitmapMismatch
}
+ if hasPaddingBitsSet(bitmap, len(bms.data.pubKeys)) {
+ return nil, crypto.ErrBitmapPaddingNotZero
+ }
+
// for the modified BLS scheme, aggregation is done not between sigs but between H1(pk_i, {pk1,..., pk_n})*sig_i
signatures := make([][]byte, 0, len(bms.data.sigShares))
pubKeysSigners := make([]crypto.PublicKey, 0, len(bms.data.sigShares))
@@ -283,6 +300,10 @@ func (bms *blsMultiSigner) Verify(message []byte, bitmap []byte) error {
return crypto.ErrBitmapMismatch
}
+ if hasPaddingBitsSet(bitmap, len(bms.data.pubKeys)) {
+ return crypto.ErrBitmapPaddingNotZero
+ }
+
pubKeys := make([]crypto.PublicKey, 0)
for i := range bms.data.pubKeys {
err := bms.isIndexInBitmap(uint16(i), bitmap) // #nosec G115
Mitigation Strategies
- Upgrade all Klever-Go validator, observer, and archive nodes to version 1.7.20 or later to enforce strict zero-padding checks on PubKeysBitmap.
- Where dynamic consensus configuration permits and immediate patching is delayed, configure consensus group sizes (consensusSize) to be an exact multiple of 8 so that PubKeysBitmap contains zero trailing padding bits.
- Monitor node debug and error logs for ErrBitmapWithPaddingNotZero and ErrBitmapPaddingNotZero events to detect malicious block proposers attempting to broadcast inflated bitmaps.
Remediation Steps:
- Stop the running klever-go node service and verify current version status.
- Fetch the latest release from https://github.com/klever-io/klever-go and checkout tag v1.7.20 (containing commit a11cb28e495e608d8034dbe83a91e89d0c68e0f7).
- Compile the updated klever-go binaries or deploy the official v1.7.20 container image/release binary.
- Restart the node service and verify consensus synchronization and log output.
References
- CVE.org Record: CVE-2026-58262
- NVD Detail: CVE-2026-58262
- GitHub Security Advisory: GHSA-f9h7-4mmq-vgcq
- GitHub Fix Commit: a11cb28e495e608d8034dbe83a91e89d0c68e0f7
- CVEList V5 JSON Record: CVE-2026-58262
Read the full report for CVE-2026-58262 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.