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)
| Producto | Versiones | Corregido en |
|---|---|---|
| github.com/klever-io/klever-go | < 1.7.20 | 1.7.20 |
Acción recomendada por la fuente
Actualizar a una versión corregida: 1.7.20.
Corregido en: 1.7.20
Fuentes y referencias
- 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
Debilidades (CWE): CWE-345, CWE-347
Historial de cambios relevantes
Publicado
Aviso preliminar publicado.