Saltar al contenido
DayZeroHub
Alta Sin redactarCVSS 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

Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.

Resumen

CVE-2026-58262: vulnerabilidad de severidad alta (CVSS 7.1) en github.com/klever-io/klever-go.

Qué ocurre

Descripción original de la fuente (en inglés): ## 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…

Por qué importa

Severidad alta, CVSS 7.1.

Productos y versiones afectados

github.com/klever-io/klever-go < 1.7.20 (corregido en 1.7.20)

ProductoVersionesCorregido en
github.com/klever-io/klever-go< 1.7.201.7.20

Acción recomendada por la fuente

Actualizar a una versión corregida: 1.7.20.

Corregido en: 1.7.20

Información tomada de la fuente o del proveedor. Verificala en el enlace original antes de actuar.

Fuentes y referencias

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

Historial de cambios relevantes

  1. Publicado

    Aviso preliminar publicado.