Skip to content
DayZeroHub
High Not yet writtenCVSS 7.1GHSA-f9h7-4mmq-vgcqCVE-2026-58262

CVE-2026-58262: Klever Go counts bitmap padding bits toward BLS quorum, allowing blocks with insufficient signatures

github.com/klever-io/klever-go

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-58262: high-severity vulnerability (CVSS 7.1) in github.com/klever-io/klever-go.

What happened

Original description from the source: ## Summary When validating an incoming block header, `HeaderSigVerifier.verifyConsensusSize` counts *every* set bit in `PubKeysBitmap` — including bits that correspond to no validator (the padding bits of the final byte, which exist whenever the consensus group size is not a multiple of 8). The subsequent BLS aggregate-signature verification (`blsMultiSigner.Verify`) only checks signature validity for real validator indices and silently ignores those padding bits. As a result, a malicious or compromised block producer can set the padding bits to make the on-bits reach the PBFT quorum while only gathering a smaller number of real validator signature shares, causing a block to be accepted as correctly signed without a genuine two-thirds validator quorum. ## Details Quorum counter counts padding bits — `core/process/headerCheck/headerSignatureVerify.go:145-183`: ```go func (hsv *HeaderSigVerifier) verifyConsensusSize(consensusPubKeys []string, header data.HeaderHandler) error { consensusSize := len(consensusPubKeys) bitmap := header.GetPubKeysBitmap() expectedBitmapSize := consensusSize / 8 if consensusSize%8 != 0 { expectedBitmapSize++ } if len(bitmap) != expectedBitmapSize { ... return ErrWrongSizeBitmap } numOfOnesInBitmap := 0 for index := range bitmap { numOfOnesInBitmap += bits.OnesCount8(bitmap[index]) // <-- counts ALL bits incl. padding } minNumRequiredSignatures := consensus.GetPBFTThreshold(consensusSize) ... if numOfOnesInBitmap >= minNumRequiredSignatures { return nil } ... return ErrNotEnoughSignatures } ``` The bitmap-byte-length check above only ensures the byte array is the right *size*; it never requires the padding bits (bits `[consensusSize … expectedBit…

Why it matters

High severity, CVSS 7.1.

Affected products and versions

github.com/klever-io/klever-go < 1.7.20 (fixed in 1.7.20)

ProductVersionsFixed in
github.com/klever-io/klever-go< 1.7.201.7.20

Action recommended by the source

Upgrade to a fixed version: 1.7.20.

Fixed in: 1.7.20

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-345, CWE-347

Relevant change history

  1. Published

    Preliminary advisory published.