Nov 24, 2026·14 min read·1 visit
In Klever-Go versions prior to 1.7.20, block header verification counts unused trailing padding bits in `PubKeysBitmap` toward the two-thirds validator quorum while ignoring them during cryptographic BLS aggregate-signature verification. A malicious block proposer can set these padding bits to commit under-signed blocks without achieving a true two-thirds validator quorum.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
Klever-Go (klever-io/klever-go) is the official Go implementation of the Klever blockchain protocol. The network relies on a Byzantine Fault Tolerant (BFT) consensus engine where designated validator nodes propose and attest to blocks in discrete rounds. To achieve consensus finality, each proposed block header must collect cryptographic attestations from at least a two-thirds quorum of the active validator consensus group (consensusSize). These individual validator signatures are combined using a Boneh-Lynn-Shacham (BLS) multi-signature aggregation scheme and stored inside the block header alongside a byte slice field named PubKeysBitmap.
The PubKeysBitmap field acts as a bit array where bit index $i$ corresponds directly to the validator at index $i$ within the ordered consensus group public key list. When a node imports or intercepts a block header over the peer-to-peer network, the header checking subsystem (core/process/headerCheck) executes a two-phase validation process. First, it verifies that the total number of set bits (1s) in PubKeysBitmap meets or exceeds the minimum two-thirds quorum threshold (minQuorumSize). Second, it passes the bitmap and the aggregated signature to the cryptographic multi-signer package (crypto/signing/multisig) to verify that the aggregated BLS signature is mathematically valid for the subset of public keys indicated by the bitmap.
CVE-2026-58262 (also identified as GHSA-f9h7-4mmq-vgcq and audit finding KLR-04) stems from a state discrepancy between how the consensus quorum checker and the cryptographic signature verifier parse the PubKeysBitmap byte slice. Classified under CWE-347 (Improper Verification of Cryptographic Signature) and CWE-345 (Insufficient Verification of Data Authenticity), the vulnerability occurs whenever the active consensus group size is not an exact multiple of 8 (consensusSize % 8 != 0). Because memory for PubKeysBitmap is allocated in whole 8-bit bytes (ceil(consensusSize / 8)), any consensus size not divisible by 8 leaves between 1 and 7 unused trailing padding bits in the most significant bit positions of the final byte.
In Klever-Go versions prior to 1.7.20, the quorum calculation function (HeaderSigVerifier.verifyConsensusSize) counts every set bit across all bytes of PubKeysBitmap without masking or rejecting non-zero padding bits. Conversely, the BLS verification routine (blsMultiSigner.Verify) iterates exclusively over the valid validator slice indices ($0$ to $\text{consensusSize} - 1$), completely ignoring any bit positions beyond $\text{consensusSize} - 1$. Consequently, a malicious block producer can set the unused padding bits to 1 to satisfy the numeric quorum check while submitting an aggregate BLS signature composed of fewer genuine validator signatures than the protocol mandates.
The root cause of CVE-2026-58262 is a failure to enforce canonical bit-length bounds on a byte-aligned bitmap structure across two distinct architectural layers: the consensus header validator (core/process/headerCheck/headerSignatureVerify.go) and the BLS multi-signature verifier (crypto/signing/multisig/blsMultisig.go). In Go, a bit array of length $N$ bits must be stored in a []byte slice of length $L = \lceil N / 8 \rceil$ bytes. In integer arithmetic, this allocation size is computed as (N + 7) / 8 or N/8 + 1 when N % 8 != 0.
Within the final byte of the bitmap (bitmap[len(bitmap)-1]), only the lowest $R = N \pmod 8$ bits (bit positions $0$ through $R - 1$ within that byte, corresponding to global validator indices $8(L - 1)$ through $N - 1$) represent real validators in the active consensus group. The remaining $8 - R$ highest bits in that final byte (bit positions $R$ through $7$ within the byte, or global indices $N$ through $8L - 1$) are structural padding bits that do not map to any configured public key.
When HeaderSigVerifier.verifyConsensusSize evaluates a block header's PubKeysBitmap, it first checks that the byte length of the slice matches the expected byte count for the consensus group size. However, it immediately proceeds to compute the total signer count by iterating over every byte in bitmap and summing the population count via bits.OnesCount8(bitmap[index]). Because bits.OnesCount8 evaluates all 8 bits of a uint8 value indiscriminately, any padding bit set to 1 in bitmap[len(bitmap)-1] increments numOfOnesInBitmap on par with a genuine validator bit.
When execution transitions to blsMultiSigner.Verify(message, bitmap) to authenticate the cryptographic signature against the bitmap, the traversal logic shifts from byte-oriented iteration to key-slice iteration. Specifically, Verify executes a loop bounded by the length of the configured public key slice (for i := range bms.data.pubKeys). For each valid index i, it invokes bms.isIndexInBitmap(uint16(i), bitmap) to check if bit i is set, and if so, appends bms.data.pubKeys[i] to the verification key set.
Because the loop in blsMultiSigner.Verify terminates at i = len(bms.data.pubKeys) - 1 (which equals $\text{consensusSize} - 1$), isIndexInBitmap is never invoked for indices $\ge \text{consensusSize}$. The cryptographic engine aggregates only the public keys for the legitimate validator bits that were set and verifies the aggregate signature against that reduced key subset. As long as the malicious block proposer only aggregates genuine signature shares corresponding to the valid bits ($< \text{consensusSize}$) that are set to 1, the bilinear pairing verification succeeds despite the presence of non-zero padding bits.
In the unpatched codebase prior to version 1.7.20, HeaderSigVerifier.verifyConsensusSize in core/process/headerCheck/headerSignatureVerify.go checked the byte-length of the bitmap and immediately performed an unmasked population count across all bytes:
// VULNERABLE CODE: core/process/headerCheck/headerSignatureVerify.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
}
// BUG: Counts all 8 bits of every byte, including trailing padding bits in bitmap[len(bitmap)-1]
numOfOnesInBitmap := 0
for index := range bitmap {
numOfOnesInBitmap += bits.OnesCount8(bitmap[index])
}
if numOfOnesInBitmap < hsv.minQuorumSize {
return ErrNotEnoughSignatures
}
return nil
}Simultaneously, in crypto/signing/multisig/blsMultisig.go, both AggregateSigs and Verify lacked any validation check to ensure that bit positions $\ge \text{len}(bms.data.pubKeys)$ were zeroed out:
// VULNERABLE CODE: crypto/signing/multisig/blsMultisig.go
func (bms *blsMultiSigner) Verify(message []byte, bitmap []byte) error {
if bitmap == nil {
return crypto.ErrNilBitmap
}
maxFlags := len(bms.data.pubKeys)
maxBitmapLen := maxFlags / 8
if maxFlags%8 != 0 {
maxBitmapLen++
}
if len(bitmap) != maxBitmapLen {
return crypto.ErrBitmapMismatch
}
// BUG: Loop only inspects indices 0 .. len(bms.data.pubKeys)-1.
// Any bits set at index >= len(bms.data.pubKeys) are silently ignored.
pubKeys := make([]crypto.PublicKey, 0)
for i := range bms.data.pubKeys {
err := bms.isIndexInBitmap(uint16(i), bitmap)
if err == nil {
pubKeys = append(pubKeys, bms.data.pubKeys[i])
}
}
// ... proceeds to verify BLS signature against pubKeys ...
}Commit a11cb28e495e608d8034dbe83a91e89d0c68e0f7 resolves this issue by implementing defense-in-depth validation at both the consensus header checking layer and the cryptographic multi-signer layer. First, in core/process/headerCheck/headerSignatureVerify.go, the patch calculates remainder := consensusSize % 8. When remainder != 0, it constructs a bitmask allowedLastByteMask := byte((1 << uint(remainder)) - 1) representing the valid lower bit positions in the final byte, and uses Go's bit-clear (AND NOT) operator (&^) to reject the bitmap if any upper padding bit is set:
// PATCHED CODE: core/process/headerCheck/headerSignatureVerify.go
// Reject bitmaps whose padding bits (positions >= consensusSize in the final byte) are set.
// Those positions map to no real validator, but the quorum count below would otherwise count
// them as signatures, letting a malicious leader inflate the apparent signer set (KLR-04).
if remainder := consensusSize % 8; remainder != 0 {
allowedLastByteMask := byte((1 << uint(remainder)) - 1)
if bitmap[len(bitmap)-1]&^allowedLastByteMask != 0 {
log.Debug("bitmap has non-zero padding bits beyond consensus size",
"consensus size", consensusSize)
return ErrBitmapWithPaddingNotZero
}
}Second, in crypto/signing/multisig/blsMultisig.go, the patch introduces a dedicated helper function hasPaddingBitsSet(bitmap []byte, numPubKeys int) bool that iterates over every padding bit index from numPubKeys up to len(bitmap)*8 - 1. This helper is invoked at the entry points of both AggregateSigs and Verify, returning crypto.ErrBitmapPaddingNotZero if any out-of-bounds bit is set:
// PATCHED CODE: crypto/signing/multisig/blsMultisig.go
func hasPaddingBitsSet(bitmap []byte, numPubKeys int) bool {
for bitIndex := numPubKeys; bitIndex < len(bitmap)*8; bitIndex++ {
if bitmap[bitIndex/8]&(1<<uint8(bitIndex%8)) != 0 { // #nosec G115 - bitIndex%8 is always < 8
return true
}
}
return false
}
func (bms *blsMultiSigner) Verify(message []byte, bitmap []byte) error {
// ... length checks ...
if hasPaddingBitsSet(bitmap, len(bms.data.pubKeys)) {
return crypto.ErrBitmapPaddingNotZero
}
// ...
}The fix is complete and eliminates the vulnerability class across the codebase. By enforcing canonical zero-padding in both verifyConsensusSize (via bitwise mask clearing &^) and blsMultiSigner (via explicit bit-index scanning in AggregateSigs and Verify), no code path can either create or accept a bitmap containing set bits at indices $\ge \text{consensusSize}$.
Exploiting CVE-2026-58262 requires two primary prerequisites: the target network or shard must operate with a consensus group size (consensusSize) that is not an exact multiple of 8 (consensusSize % 8 != 0), and the attacker must hold Low Privileges (PR:L), specifically acting as a validator selected as the block proposer (leader) for a given consensus slot or round. No user interaction (UI:N) is required, as peer nodes validate and import incoming block headers autonomously over the network (AV:N).
Consider a concrete scenario where a consensus group consists of $N = 21$ active validators. Under a standard two-thirds BFT quorum rule, a valid block header requires at least $\lceil 2/3 \times 21 \rceil = 14$ genuine validator signatures. The PubKeysBitmap for 21 validators requires $\lceil 21 / 8 \rceil = 3$ bytes (24 bits total). Within this 24-bit array, bit indices $0$ through $20$ map to the 21 validators, while bit indices $21, 22,$ and $23$ (the upper 3 bits of byte index 2, mask 0xE0) are unused padding bits.
To execute the attack, the malicious block proposer constructs a block header and solicits signature shares from colluding or honest peers, or generates signature shares from validator keys under its control. Suppose the proposer only obtains 11 valid signature shares—3 signatures short of the required 14-validator quorum. The proposer aggregates only those 11 valid signature shares into the header's BLS aggregate signature.
Next, the proposer constructs the 3-byte PubKeysBitmap. It sets the 11 bit positions corresponding to the 11 real signers (indices within $0 \dots 20$) to 1, and additionally sets the 3 unused padding bits at indices $21, 22,$ and $23$ (bitmap[2] |= 0xE0) to 1. Note that if the attacker's local node uses the standard AggregateSigs method on an unpatched node, AggregateSigs also ignores the padding bits and produces a valid aggregate signature over the 11 real shares. The proposer then broadcasts the crafted block header to the network.
When an unpatched receiving node processes the header, verifyConsensusSize counts the set bits across all 3 bytes using bits.OnesCount8, obtaining $11 + 3 = 14$. Because $14 \ge 14$ (minQuorumSize), the quorum check succeeds. Next, blsMultiSigner.Verify iterates from i = 0 to 20, extracts the exact 11 public keys whose bits were set in the valid range, and verifies the 11-party aggregated BLS signature against those 11 public keys. The mathematical verification succeeds, and the node accepts the under-signed block as finalized. In the worst-case boundary condition where $N \equiv 1 \pmod 8$ (for example, $N = 9$ or $N = 17$), up to 7 padding bits reside in the final byte, allowing an attacker to forge up to 7 validator votes toward the quorum.
The primary security impact of CVE-2026-58262 is the subversion of Byzantine Fault Tolerant (BFT) consensus safety and block finality guarantees. BFT protocols depend on the mathematical invariant that any two quorums of size $\ge \frac{2}{3}N$ must intersect in at least $\frac{1}{3}N + 1$ validators, ensuring that even if up to $\frac{1}{3}N$ validators are Byzantine (malicious), two conflicting blocks cannot both achieve quorum in the same round. By allowing a block proposer to substitute up to $8 - (N \pmod 8)$ padding bits for genuine validator signatures, the effective quorum threshold is reduced from $\lceil \frac{2}{3}N \rceil$ to $\lceil \frac{2}{3}N \rceil - (8 - (N \pmod 8))$.
For smaller or non-multiple-of-8 consensus group sizes, this reduction breaks the quorum intersection property. For instance, if a consensus group size is $N = 17$, a two-thirds quorum requires 12 signatures, and the 3-byte bitmap contains $24 - 17 = 7$ padding bits. A malicious leader can set all 7 padding bits and only collect $12 - 7 = 5$ genuine signatures (less than one-third of the validator set) to pass header verification. This allows a minority coalition of malicious validators to unilaterally finalize arbitrary block headers, create conflicting forks (equivocation), or censor transactions without the consent of an honest two-thirds majority.
In accordance with CVSS v4.0 metrics, this vulnerability carries a base score of 7.1 (High) with vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N. The Vulnerable System Integrity impact is rated High (VI:H) because an attacker can force nodes to accept and commit state transitions that violate protocol consensus rules. Confidentiality (VC:N) and Availability (VA:N) are rated None in the baseline vector, though consensus divergence between patched and unpatched nodes during an active attack could lead to chain splits.
From a threat intelligence perspective, CVE-2026-58262 has an EPSS score of 0.00161 (0.161%, placing it in the 5.28th percentile), is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and has no known public exploit scripts or active exploitation campaigns. The low EPSS score reflects the specialized nature of blockchain consensus vulnerabilities and the requirement that the attacker must control an active validator node elected as a block proposer (PR:L).
All node operators, validators, and exchanges running klever-io/klever-go must upgrade to version 1.7.20 or later. Version 1.7.20 incorporates commit a11cb28e495e608d8034dbe83a91e89d0c68e0f7, which enforces strict zero-validation on all trailing padding bits in PubKeysBitmap across both the header verification subsystem and the BLS cryptographic multi-signer package.
For deployments compiled directly from source, administrators should pull the latest release tag (v1.7.20 or newer) or verify that commit a11cb28e495e608d8034dbe83a91e89d0c68e0f7 is present in their build branch before recompiling and restarting the node binary:
git fetch --all --tags
git checkout v1.7.20
git log -n 1 a11cb28e495e608d8034dbe83a91e89d0c68e0f7> [!NOTE]
> In environments where immediate binary upgrades cannot be executed across all nodes simultaneously, protocol governance administrators can neutralize the attack vector at the configuration level by ensuring that the configured active consensus group size (consensusSize) is an exact multiple of 8 (e.g., 16, 24, 32, 64). When consensusSize % 8 == 0, every bit in the final byte of PubKeysBitmap maps to an active validator public key, leaving zero padding bits available for manipulation.
Security engineering teams and node operators can monitor for attempted exploitation after upgrading to 1.7.20 by inspecting node logs and telemetry for the error constants introduced by the patch. Specifically, any incoming block header or multi-signature payload that contains non-zero padding bits will generate debug logs containing "bitmap has non-zero padding bits beyond consensus size" or return error strings matching "bitmap has non-zero padding bits beyond the consensus group size" (ErrBitmapWithPaddingNotZero) and "bitmap has set padding bits beyond the public key count" (ErrBitmapPaddingNotZero).
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
klever-go klever-io | < 1.7.20 | 1.7.20 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-347 (Improper Verification of Cryptographic Signature) / CWE-345 |
| Attack Vector | Network (Crafted Block Header PubKeysBitmap by Block Proposer) |
| CVSS v4.0 Score | 7.1 High (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N) |
| EPSS Score | 0.161% (5.28th Percentile) |
| Primary Impact | Consensus Quorum Bypass & Subversion of BFT Block Finality |
| Exploit Status | None (No public PoCs or active exploitation) |
| CISA KEV Status | Not Listed |
| Patched Version | klever-go v1.7.20 |
The product does not verify, or incorrectly verifies, the cryptographic signature for data, allowing an actor to forge or bypass signature validation requirements.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.
CVE-2026-133469 is an improper authentication and input type validation vulnerability in the xo-server component of Vates Xen Orchestra and Xen Orchestra Appliance (XOA). Due to Express cookie-parser JSON deserialization combined with loose truthiness validation and unvalidated Redis query construction, an unauthenticated attacker can supply an empty JSON object cookie (authenticationToken=j:{}) to bypass authentication and hijack the first valid active session token stored in the database. This flaw is actively exploited in the wild to gain administrative control over Xen Orchestra deployments and execute root-level commands on underlying XCP-ng and XenServer hypervisors.
CVE-2026-22816 (GHSA-w78c-w6vf-rw82) is a high-severity flaw in Gradle's dependency resolution engine affecting versions prior to 8.14.4 and versions 9.0.0 through 9.2.1. Due to improper error handling when transient network errors or connection failures exhaust their retry limits, Gradle fails to mark unreachable repositories as disabled and does not abort the resolution queue. Instead, it silently falls through to subsequent repositories configured in the build script. This behavior enables dependency confusion and supply chain attacks when an internal or primary repository experiences connectivity issues, unresolvable DNS, or domain registration lapses.