CVE-2026-52737
JSON

5.3medium

ZEBRA: Sync restart poisoning from single unauthenticated peer via above-lookahead block

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-gvjc-3w7c-92jx

Description

ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, a malicious unauthenticated P2P peer can answer Zebra's outbound getblocks or FindBlocks request with a small two-hash inventory and then serve a syntactically valid block whose coinbase height is far above the local chain tip. In zebrad/src/components/sync/downloads.rs, BlockDownloadVerifyError::AboveLookaheadHeightLimit originally carried only the block height and hash, so handle_block_response could not attribute the failure to the advertising peer. The error then reached the restart-worthy default path in zebrad/src/components/sync.rs, cancelling all in-flight downloads from honest peers and imposing a 67-second sync restart delay on mainnet. Because the peer was neither scored nor disconnected, the peer could repeat the cycle indefinitely with minimal bandwidth and significantly degrade synchronization without corrupting state. This issue is fixed in version 4.5.0.

Affected

Product or packageVersionsReported by
ZcashFoundation zebra< 4.5.0CVE List
ZcashFoundation zebra-consensus< 7.0.0CVE List
zebra-consensus (crates.io)before 7.0.0GitHub Advisory Database
zebrad (crates.io)before 4.5.0GitHub Advisory Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-345

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, a malicious unauthenticated P2P peer can answer Zebra's outbound getblocks or FindBlocks request with a small two-hash inventory and then serve a syntactically valid block whose coinbase height is far above the local chain tip. In zebrad/src/components/sync/downloads.rs, BlockDownloadVerifyError::AboveLookaheadHeightLimit originally carried only the block height and hash, so handle_block_response could not attribute the failure to the advertising peer. The error then reached the restart-worthy default path in zebrad/src/components/sync.rs, cancelling all in-flight downloads from honest peers and imposing a 67-second sync restart delay on mainnet. Because the peer was neither scored nor disconnected, the peer could repeat the cycle indefinitely with minimal bandwidth and significantly degrade synchronization without corrupting state. This issue is fixed in version 4.5.0.

GitHub Advisory Database
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. 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:

  1. The syncer promotes unvalidated FindBlocks peer responses into concrete download schedules without checking that the advertised hashes are plausible chain extensions.

  2. When a downloaded block's coinbase height exceeds tip + VERIFICATION_PIPELINE_DROP_LIMIT, the sync downloader returns BlockDownloadVerifyError::AboveLookaheadHeightLimit. This error variant carries only the block height and hash, not the advertiser peer address.

  3. The sync error handler in handle_block_response only sends misbehaviour scores for BlockDownloadVerifyError::Invalid errors that carry an advertiser_addr and have a nonzero misbehavior_score(). AboveLookaheadHeightLimit falls 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_addr through AboveLookaheadHeightLimit and InvalidHeight error 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() across BlockError, VerifyBlockError, and CommitBlockError to 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.

NVD (es)

ZEBRA es un nodo de Zcash escrito completamente en Rust. Antes de la versión 4.5.0, un par P2P malicioso no autenticado podía responder a la solicitud saliente de Zebra de getblocks o FindBlocks con un pequeño inventario de dos hashes y luego servir un bloque sintácticamente válido cuya altura de coinbase estaba muy por encima de la punta de la cadena local. En zebrad/src/components/sync/downloads.rs, BlockDownloadVerifyError::AboveLookaheadHeightLimit originalmente solo contenía la altura y el hash del bloque, por lo que handle_block_response no podía atribuir el fallo al par anunciante. El error luego alcanzó la ruta predeterminada que amerita un reinicio en zebrad/src/components/sync.rs, cancelando todas las descargas en curso de pares honestos e imponiendo un retraso de 67 segundos en el reinicio de la sincronización en la red principal. Debido a que el par no fue puntuado ni desconectado, el par podía repetir el ciclo indefinidamente con un ancho de banda mínimo y degradar significativamente la sincronización sin corromper el estado. Este problema está solucionado en la versión 4.5.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-52737 changed 2026-08-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-gvjc-3w7c-92jx changed 2026-07-02CC-BY-4.0
NVDCVE-2026-52737 changed 2026-11-09Public domain