CVE-2026-52737: Zebra has sync restart poisoning from single unauthenticated peer via above-lookahead block
Am I affected You are affected if: 1. You run zebrad up to and including v4.4.1. 2. Your node accepts inbound P2P connections and is syncing or catching up to the chain tip. Summary A malicious peer can answer Zebra's outbound getblocks/FindBlocks request with a small two-hash inventory, then serve a syntactically valid block whose coinbase height is far above the victim's local tip.
Published Jul 2, 2026
Affected packages
zebra-consensus
- Ecosystem
- Rust (crates.io)
- Affected
- <= 6.0.0
- Fixed in
- 7.0.0
- Check
cargo tree -i zebra-consensus
zebrad
- Ecosystem
- Rust (crates.io)
- Affected
- <= 4.4.1
- Fixed in
- 4.5.0
- Check
cargo tree -i zebrad
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Am I affected
You are affected if:
- You run
zebradup to and includingv4.4.1. - Your node accepts inbound P2P connections and is syncing or catching up to the chain tip.
Summary
A malicious peer can answer Zebra's outbound getblocks/FindBlocks request with a small two-hash inventory, then serve a syntactically valid block whose coinbase height is far above the victim's local tip. The AboveLookaheadHeightLimit error in the sync download pipeline triggers a global sync restart rather than being scoped to the offending peer. The peer is never scored or disconnected because the error type does not carry the advertiser address.
On mainnet, each successful cycle imposes a 67-second sync restart delay. All in-flight downloads from honest peers are cancelled on each restart.
Details
The bug is the interaction of three layers:
- The syncer promotes unvalidated
FindBlockspeer responses into concrete download schedules without checking that the advertised hashes are plausible chain extensions.
- When a downloaded block's coinbase height exceeds
tip + VERIFICATION_PIPELINE_DROP_LIMIT, the sync downloader returnsBlockDownloadVerifyError::AboveLookaheadHeightLimit. This error variant carries only the block height and hash, not the advertiser peer address.
- The sync error handler in
handle_block_responseonly sends misbehaviour scores forBlockDownloadVerifyError::Invaliderrors that carry anadvertiser_addrand have a nonzeromisbehavior_score().AboveLookaheadHeightLimitfalls through to the default restart-worthy path, cancelling all in-flight downloads and waiting 67 seconds before restarting sync.
The attacker needs only an unauthenticated P2P connection (post-handshake), a tiny payload (one two-hash inv message plus one small block per cycle), and no mining capability, funds, or valid chain data. The peer is never penalised, so the attack is repeatable indefinitely.
Additionally, several other pre-consensus sync-layer errors had zero misbehaviour scores even when peer-attributed. Contextual validation failures (InvalidDifficultyThreshold, TimeTooEarly, TimeTooLate, NonSequentialBlock) and locktime failures from block-serving peers all scored zero, allowing repeated abuse without penalty.
Patches
Patched in Zebra 4.4.2. The fix:
- Carries
advertiser_addrthroughAboveLookaheadHeightLimitandInvalidHeighterror variants. - Makes above-lookahead and invalid-height failures peer-local (the block is dropped and the peer is banned with score 100) rather than triggering a global sync restart.
- Expands
misbehavior_score()acrossBlockError,VerifyBlockError, andCommitBlockErrorto cover contextual validation failures that previously scored zero.
Workarounds
No configuration-level workaround is available. The attack is mitigated by having a diverse honest peer set, but cannot be prevented while the vulnerable code is running.
Impact
A single unauthenticated peer can repeatedly stall a syncing Zebra node by forcing 67-second global sync restart cycles. All unrelated in-flight downloads are cancelled on each restart. The node does not crash and no state is corrupted, but sync progress is significantly degraded for the duration of the attack.
Credit
Reported by @ipwning.
Credited to ipwning, mpguerra, conradoplg, oxarbitrage.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesCVE-2026-54496
Zebra: Missing copy constraint in halo2_gadgets variable-base scalar multiplication allows under-constrained base, breaking Orchard Action circuit soundness
critical9.3Jul 6, 2026CVE-2026-52731
zebrad has full node denial of service via non-ASCII LongPollId in getblocktemplate
medium6.5Jul 2, 2026CVE-2026-52732
zebrad has mempool transaction admission denial via single-peer inbound queue saturation
medium5.3Jul 2, 2026CVE-2026-52733
zebrad has persistent on-disk corruption of Sapling/Orchard subtree roots after chain fork via pop_tip
medium6.5Jul 2, 2026CVE-2026-52734
zebrad has unbounded memory leak in mempool download pipeline via timeout path cancel_handles retention
medium5.3Jul 2, 2026CVE-2026-52735
zebrad has consensus divergence via P2SH sigop undercount in pure-Rust disabled-opcode parser
critical9.3Jul 2, 2026
