---
id: CVE-2026-52733
title: ZEBRA is a Zcash node written entirely in Rust
summary: >-
  ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, a natural or
  attacker-influenced chain fork can leave stale Sapling and Orchard
  note-commitment subtree roots in Zebra state. In
  zebra-state/src/service/non_finalized_state/…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L'
cwe:
  - CWE-459
  - CWE-672
vendor: zebra-state
product: zebra-state
affected:
  - zebra-state <= 6.0.0
  - zebrad <= 4.4.1
patched:
  - zebra-state 7.0.0
  - zebrad 4.5.0
published: '2026-08-18'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:13:25.910'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-52733'
references:
  - url: >-
      https://github.com/ZcashFoundation/zebra/commit/1440b43ca7df59aca948090d45117557b217a6cd
    label: security-advisories@github.com
  - url: 'https://github.com/ZcashFoundation/zebra/releases/tag/v4.5.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/ZcashFoundation/zebra/security/advisories/GHSA-2gf8-q9rr-jq3h
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-2gf8-q9rr-jq3h'
tags:
  - nvd
  - ghsa
  - rust
epss: 0.00436
epssPercentile: 0.35261
ecosystem: rust
ingestedAt: '2026-07-02T20:42:45.689Z'
---

## Overview

ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, a natural or attacker-influenced chain fork can leave stale Sapling and Orchard note-commitment subtree roots in Zebra state. In zebra-state/src/service/non_finalized_state/chain.rs, Chain::pop_tip removed a reverted tip block but did not remove subtree entries whose end_height belonged to that block, unlike the cleanup performed by pop_root. When the winning fork later finalized, the abandoned branch's stale subtree data could be written to RocksDB and survive node restarts. The corrupted history can cause z_getsubtreesbyindex consumers such as lightwalletd and light wallets to receive incorrect subtree roots, producing wallet synchronization failures or incorrect wallet state and requiring a full state rebuild for recovery. This issue is fixed in version 4.5.0.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-52733)

Affected packages:

- `zebra-state <= 6.0.0`
- `zebrad <= 4.4.1`

Patched in:

- `zebra-state 7.0.0`
- `zebrad 4.5.0`

Source: https://github.com/advisories/GHSA-2gf8-q9rr-jq3h
