Market desk Bitcoin Ethereum Altcoins DeFi Stablecoins Markets & Trading

Ethereum Consensus Client Patches Validator Pubkey Cache Vulnerability

A fix has been merged to address a potential validator pubkey cache poisoning attack in one of Ethereum's consensus clients ahead of the Glamsterdam upgrade.
1 hour ago 1 views
Ethereum Consensus Client Patches Validator Pubkey Cache Vulnerability

One of Ethereum's consensus clients has merged a fix for a validator pubkey cache poisoning attack, according to a pull request on GitHub. The patch addresses a vulnerability related to the Gloas fork, which is part of the upcoming Glamsterdam upgrade, and could result in some nodes rejecting valid signatures due to a bug in the global pubkey cache.

The vulnerability exists in a mechanism where the client stores validator public keys and their indexes in a global cache. At the fork boundary, an attacker could potentially exploit this by using three deposits just before the fork: a large top-up for an existing validator, plus two new keys with different credential types.

The attack scenario involves the attacker creating a side chain where a topped-up validator gets slashed before the fork, causing its deposit to be skipped. This would allow one validator key to be processed earlier and take another key's index. On the canonical chain, however, the normal deposit order would differ, creating a mismatch. The buggy cache would incorrectly assume both chains produced the same validators, importing keys globally and causing affected nodes to reject valid signatures from the canonical chain.

While theoretically viable, the attack is complex in practice, requiring precise slashing timing and a side chain, making accidental occurrence unlikely.

The Fix

According to the pull request, the solution involves only adding validator keys to the global pubkey cache once their activation eligibility epoch is finalized. A new HeadPubkeys structure combines keys from the head state and the global cache, ensuring nodes do not miss keys if the chain finalizes without new blocks.

Developers are still determining whether other consensus clients have similar vulnerabilities. As the Glamsterdam upgrade approaches, additional edge cases around the fork boundary continue to emerge.

Market snapshot

Top cryptocurrency prices

Explore all prices
BitcoinBTC $69,396.46-4.74% EthereumETH $1,963.07-2.90% Tether USDUSDT $0.9996-0.03% BNBBNB $639.68-3.59% USDCUSDC $1.00-0.04% XRPXRP $1.03-1.09% SolanaSOL $80.75-1.98% TRONTRX $0.3127-1.19% HyperliquidHYPE $74.15+4.88% ZcashZEC $963.94-0.18%
Prices by Coinranking. Informational only.