Attack on the L3 Finality Window

L3 finality gap exploits the delay between an L3 transaction and its L2 confirmation to release bridge funds before the state is locked in.

SECURITY5 min readBy AlgoSys Editorial TeamPublished Apr 24, 2026Updated Jun 26, 2026
Contents

Layer 3 (L3) networks are often built as rollups on top of Layer 2 (L2) solutions, and they bring with them a new security consideration called the finality gap (the gap between the moment a transaction appears to be complete and the moment its state is permanently locked in). This gap arises from a time delay: a transaction has already been finalized on the L3, but the corresponding state has not yet been finalized on the L2 and then on the Layer 1 (L1) blockchain.

This window is exactly what the attacker is targeting. If you submit a fraudulent transaction to the L3 and then claim its validity on the L2 before the L3 state has been fully confirmed, you can withdraw assets from bridges or other connected protocols. The vulnerability is especially dangerous for L3s that rely on L2 sequencers (nodes that order transactions) for operation ordering and on the L1 for data availability and final settlement.

To understand the scale of the threat, it helps to recall similar incidents. They are not always directly linked to an L3 finality gap as such, but they show how fragile cross-chain mechanisms can be. The Multichain exploit in 2023 relied on complex cross-chain interactions where attackers played on the trust assumptions between bridge components. The Wormhole incident in 2022 demonstrated how a vulnerability in a cross-chain messaging protocol leads to significant asset loss.

The threat is becoming increasingly relevant as L3 ecosystems grow. The primary target here is protocols that move assets between L3, L2, and L1. Understanding the mechanics of this gap matters for both developers and users operating in multi-layered blockchain environments.

MECHANICS

The attack typically begins with the attacker submitting a transaction to the L3 network. Most often it initiates a withdrawal from a cross-chain bridge and requests a transfer of a large amount of assets to another chain.

While this transaction is still pending or has received only a preliminary confirmation on the L3, the attacker simultaneously targets the bridge contract on the L2. They exploit the finality window: they send a proof or message to the L2 contract claiming that the L3 transaction has already been finalized, even though in reality its state has not yet been settled or verified on either the L2 or the L1.

This is achieved in one of two ways: either by manipulating the sequencer or validator set on the L3, or by exploiting a specific delay in the L2's process for verifying L3 state roots. The L2 bridge contract trusts the provided (but premature) proof and releases the requested assets on the destination chain.

After that, it is straightforward. Once the L2 contract has released the funds, the attacker takes the assets. The fraudulent L3 transaction ultimately fails or is rolled back once its true state is reconciled, but by that point the assets have already been withdrawn from the chain, and the bridge and its users are left with a loss.

To make the attack more concrete, here is a step-by-step breakdown using a hypothetical example:

  1. Entry. The attacker places a transaction on the L3 to withdraw 1,000,000 USDC from the bridge.
  2. Premature proof. Before the L3 state is finalized, they send a proof to the L2 contract claiming the withdrawal has been confirmed.
  3. Fund release. The L2 contract trusts the proof and mints 1,000,000 USDC on the destination chain, from which the attacker withdraws them.
  4. Rollback. The original L3 transaction is rolled back upon reconciliation, but the assets are already gone. The bridge bears the loss.

How to tell from a routine delay: for a legitimate withdrawal, the proof for the L2 appears only AFTER the L3 state has been definitively finalized on the L2 and L1, and funds are released with the protocol-specified delay. An attack reveals itself by the proof arriving on the L2 before the L3 state root has actually been updated, and it is accompanied by a large withdrawal alongside atypical sequencer activity. If the L2 state already reflects finalization while the same batch is still "pending" on the L3, that is the exact gap the attacker is exploiting.

RISK INDICATORS

The signs listed below may signal a potential L3 finality window vulnerability or an exploit already in progress:

  • Bridge contracts show unusually long confirmation times for cross-chain transfers originating from L3 networks.
  • Monitoring tools record a significant discrepancy between L3 transaction finality and the L2 state root update for the same batch.
  • L3 sequencers or validators are operating with elevated privileges or displaying atypical behavior.
  • Cross-chain bridge interfaces show withdrawal requests from L3 that remain stuck in "processing" for extended periods.
  • L2 or L1 monitoring services send alerts about possible state inconsistencies originating from connected L3 networks.
  • The L3 network is experiencing a spike in gas fees or congestion coinciding in time with large withdrawal requests from bridges.

PROTECTION

The foundation of protection is robust state verification for cross-chain communications. L2 bridge contracts must accept state proofs from the L3 only after those states have been definitively finalized and anchored on the L2 and L1, not a moment sooner.

On top of that, it is useful to build multi-stage confirmation for cross-chain withdrawals. Before releasing funds on the destination chain, require several independent attestations or build in a meaningful time delay that accounts for full finalization of both the L3 and the L2.

The security of L3 sequencers and validators deserves separate attention. Decentralized validator sets and robust consensus mechanisms prevent an attacker from manipulating transaction ordering or submitting premature proofs.

Regular audits of all cross-chain bridge logic are equally important. Focus on verifying state transitions and the finality assumptions between L3, L2, and L1, and engage specialized security firms for comprehensive code review.

Finally, connect real-time monitoring and alerting systems that track L3 state finalization against L2 and L1 checkpoints. Set up automated alerts for any discrepancies or delays that exceed defined thresholds.

AFTERMATH

If an L3 finality window exploit has occurred, speed of response decides everything. The first step is to pause all cross-chain bridge operations originating from or interacting with the affected L3 network to cut off further asset outflow.

Next, notify the L3 network operators and the L2 and L1 security teams for a coordinated response. Preserve all relevant transaction data, logs, and state snapshots from the L3, L2, and L1: they will be needed for forensic analysis.

Then engage blockchain security firms such as Chainalysis or PeckShield for investigation and asset tracking. Report the incident to law enforcement agencies specializing in cybercrime and provide them with all collected evidence. In parallel, explore possible recovery paths: through smart contract logic if it allows for it, or through legal channels.

FAQ

What is the primary risk associated with the L3 finality window?

The primary risk is that an attacker exploits the time delay between a transaction being finalized on L3 and its confirmation on the underlying L2 or L1. During that window, they submit a fraudulent claim about an L3 transaction to the L2 and obtain unauthorized asset withdrawals from cross-chain bridges.

How does this differ from L2 finality issues?

L2 also has its own finality considerations, but the L3 finality window adds yet another layer of complexity. Three levels converge here at once: finalization of the L3 itself, finalization of its state on the L2, and subsequent finalization on the L1. This makes the window wider and potentially more exploitable.

Can this vulnerability affect non-bridge protocols?

Yes. Any protocol that relies on cross-chain communication and state verification between L3 and other layers is at risk. This includes decentralized exchanges (DEXs), lending protocols, and other applications that transfer data or assets between blockchain layers.

What signs indicate an attack is underway?

The main signal is a finalization proof for an L3 transaction arriving on the L2 before the L3 state root has actually been updated. Additional indicators include large withdrawals stuck in a processing status, atypical activity from L3 sequencers or validators, and monitoring alerts about state mismatches between layers.

How do you protect a bridge from finality window exploitation?

Accept L3 state proofs only after they have been definitively finalized on both L2 and L1, add multi-stage withdrawal confirmation with independent attestations or a time delay, strengthen sequencer and validator security, and connect real-time monitoring that cross-references L3 finalization against L2 and L1 checkpoints.

What should you do in the first minutes after discovering an exploit?

Immediately pause cross-chain bridge operations related to the affected L3 network to stop the outflow. Then notify L3 operators and the L2 and L1 security teams, preserve all transaction data and logs for forensics, and engage specialized firms like Chainalysis or PeckShield for investigation and asset tracking.

Put this to work in the terminal

Live charts, derivatives, on-chain and macro data, free.

Open terminal →