Skip to main content
Vulnerability Database/CVE-2026-104421

CVE-2026-104421: Zebra DOS Vulnerability

CVE-2026-104421 is a denial of service flaw in Zebra that allows attackers to block valid block downloads through incomplete cleanup. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-104421 Overview

CVE-2026-104421 affects Zebra, the Rust implementation of a Zcash full node maintained by the Zcash Foundation, in versions prior to 6.2.1. The vulnerability is an incomplete cleanup flaw [CWE-459] in the block download logic. Unauthenticated peers can submit a contextually invalid block that shares an honest block's header hash. The rejected hash remains in the SentHashes structure, causing Request::KnownBlock to skip the legitimate block. Affected nodes stop downloading valid blocks and fall behind the chain tip, producing a denial-of-service condition against consensus participation.

Critical Impact

Remote unauthenticated attackers can prevent Zebra nodes from syncing valid blocks, keeping them behind the Zcash chain tip without any authentication or user interaction.

Affected Products

  • Zcash Foundation Zebra full node, all versions prior to 6.2.1
  • Deployments exposing the peer-to-peer network interface to untrusted peers
  • Node operators relying on Zebra for Zcash consensus and chain synchronization

Discovery Timeline

  • 2026-10-02 - CVE-2026-104421 published to the National Vulnerability Database
  • 2026-10-02 - Record last modified in NVD

Technical Details for CVE-2026-104421

Vulnerability Analysis

Zebra tracks hashes of blocks it has requested or seen in a SentHashes data structure to avoid redundant work during chain synchronization. When a peer supplies a block that fails contextual validation, Zebra rejects the block but does not purge the associated hash from SentHashes. The stale entry causes subsequent calls to Request::KnownBlock to classify the honest block with the same header hash as already known. The honest block is therefore skipped and never downloaded, leaving the node stuck behind the chain tip.

The weakness is a logic flaw in state cleanup rather than memory corruption. Exploitation requires only the ability to send a crafted block message to a Zebra peer, which is normal behavior on the public Zcash network.

Root Cause

The root cause is incomplete cleanup of the SentHashes collection following rejection of a contextually invalid block. Zebra's download path treats presence in SentHashes as evidence the hash is already handled, but the rejection path fails to remove the entry. This violates the invariant that rejected blocks must not block future downloads of valid blocks sharing the same header hash.

Attack Vector

An unauthenticated remote peer connects to a target Zebra node over the standard Zcash peer-to-peer protocol. The attacker constructs a block message whose header hash matches an honest block but whose body or context fails Zebra's consensus checks. After Zebra rejects the forged block, the hash persists in SentHashes, and the real block is silently discarded by the Request::KnownBlock path. Repeating the attack across multiple tip blocks keeps the node desynchronized from the network. See the GitHub Security Advisory GHSA-x93j-mj2f-q338 and the Vulncheck Denial of Service Advisory for technical details.

Detection Methods for CVE-2026-104421

Indicators of Compromise

  • Zebra node block height lagging persistently behind the public Zcash chain tip despite active peer connections.
  • Log entries showing contextually invalid blocks rejected from peers followed by failure to download the corresponding valid block.
  • Repeated receipt of blocks with duplicate header hashes from the same or related peer IP addresses.
  • Growth of the SentHashes structure without corresponding advances in finalized block height.

Detection Strategies

  • Monitor Zebra node sync status and alert when local tip height trails network tip height beyond an expected tolerance.
  • Correlate rejected-block log events with subsequent gaps in downloaded block ranges to identify lockout patterns.
  • Track inbound peer behavior and flag peers that submit blocks failing contextual validation on a repeated basis.

Monitoring Recommendations

  • Instrument Zebra Prometheus metrics for peer counts, best chain height, and block download queue depth.
  • Compare local best block height against a trusted external Zcash reference every few minutes.
  • Forward Zebra logs to a centralized logging platform and build alerts on validation-failure events tied to tip-adjacent hashes.

How to Mitigate CVE-2026-104421

Immediate Actions Required

  • Upgrade all Zebra nodes to version 6.2.1 or later as published in the Zcash Foundation security advisory.
  • Restart nodes after upgrade to clear any stale SentHashes state inherited from the vulnerable build.
  • Verify post-upgrade that each node reaches and tracks the current Zcash chain tip.

Patch Information

The Zcash Foundation addressed the issue in Zebra 6.2.1. The fix ensures hashes of rejected blocks are removed from SentHashes so that honest blocks sharing the same header hash can still be requested and processed. Release notes and the patch commit are referenced in the GitHub Security Advisory GHSA-x93j-mj2f-q338.

Workarounds

  • Restrict inbound peer connections to a curated allowlist of trusted Zcash peers until the patch is deployed.
  • Place Zebra behind a firewall that limits new inbound peer connections and rate-limits block messages.
  • Periodically restart Zebra to flush in-memory SentHashes state as a temporary measure, accepting the resync cost.
bash
# Upgrade Zebra to the patched release
cargo install --locked --version 6.2.1 zebrad

# Verify installed version
zebrad --version

# Restart the service to clear in-memory state
systemctl restart zebrad

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.