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)
| Product | Versions | Fixed in |
|---|---|---|
| github.com/klever-io/klever-go | < 1.7.20 | 1.7.20 |
Action recommended by the source
Upgrade to a fixed version: 1.7.20.
Fixed in: 1.7.20
Sources and references
- https://github.com/advisories/GHSA-f9h7-4mmq-vgcq — GHSA
- https://github.com/klever-io/klever-go/security/advisories/GHSA-f9h7-4mmq-vgcq — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-58262 — GHSA
- https://github.com/klever-io/klever-go/commit/a11cb28e495e608d8034dbe83a91e89d0c68e0f7 — GHSA
- https://github.com/klever-io/klever-go — OSV
Weaknesses (CWE): CWE-345, CWE-347
Relevant change history
Published
Preliminary advisory published.