Dev.to Security 🔐 Cybersecurity 👁 0 📖 3 min read

A BLS quorum must count signatures, not unused bitmap positions

A BLS quorum must count signatures, not unused bitmap positions Klever Go validates aggregate BLS signatures for block headers. CVE-2026-58262 affects versions before 1.7.20. The flaw is that padding bits in PubKeysBit

A BLS quorum must count signatures, not unused bitmap positions

Klever Go validates aggregate BLS signatures for block headers. CVE-2026-58262 affects versions before 1.7.20. The flaw is that padding bits in PubKeysBitmap were counted toward the quorum, allowing a block to satisfy the signature threshold with fewer real signatures than the protocol requires.

The consensus detail

The bitmap tells the verifier which public keys contributed to an aggregate signature. A block has a fixed number of possible signers, but the bitmap has padding positions when the set size is not a multiple of the bitmap storage unit. Those unused positions must be zero and must not count as participating validators. If the verifier treats a set bit in the padding area as a real signer, it can compute a quorum from entries that never signed.

The advisory names CWE-345 and CWE-347 because the result is insufficient verification of authenticity and integrity. The attacker needs some network access and a low-privileged position in the model, but the consensus consequence is high: an invalid block may be accepted as if enough validators approved it. The exact exploitation sequence is not needed to understand the defensive rule. Every bitmap bit must map to a defined validator, every padding bit must be rejected, and the quorum must be calculated from validated signer identities.

Why blockchain consensus bugs are different

Ordinary application authorization failures affect one account or one service. A consensus validation flaw affects agreement across independent nodes. If one node accepts a block that another rejects, the network can split. If enough nodes share the flawed implementation, the chain may accept a block that the protocol did not authorize. Detection can therefore require more than checking a web endpoint. Operators need node versions, block validation logs, peer behavior, and a clear chain-continuity check.

Klever's fix rejects bitmaps with non-zero padding bits before the quorum calculation. That is a narrow implementation change with a broad operational meaning. A node that continues to run the old code may disagree about a block with another node that has the fix. Before upgrading a validator set, the operator should understand the chain's release procedure and coordinate with other validators rather than assuming a rolling restart is neutral.

Remediation

Upgrade Klever Go to 1.7.20 or later. Verify the binary and container digest across validators, RPC nodes, and monitoring services. The upgrade should follow the project's network procedure, including any required chain halt, migration, or coordinated activation. Keep a rollback plan that does not reintroduce an old validating process.

Audit logs for blocks whose bitmap contains set padding positions or whose signer count differs from the bitmap cardinality. Preserve the raw block header and the verifier version used for the decision. Alert on disagreement between nodes running different releases, and compare the observed validator set with the configured set. A monitoring dashboard that reports only "node healthy" will not show this class of fault.

For future changes, add property tests with all-padding patterns, high-bit positions, empty signer sets, and the exact quorum boundary. Require the verifier to reject any bitmap that references an undefined index. The test should assert that fewer than the threshold number of valid signatures cannot pass, even when the bitmap has additional set bits.

References

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.