Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-2gf8-q9rr-jq3h: zebrad has persistent on-disk corruption of Sapling/Orchard subtree roots after chain fork via pop_tip

0
Medium
Published: 07/02/2026 (07/02/2026, 20:11:36 UTC)
Source: GCVE Database
Product: zebra-state

Description

A vulnerability in zebrad up to and including v4.4.1 causes persistent on-disk corruption of Sapling and Orchard subtree root data after chain forks via the pop_tip method. This corruption is written to RocksDB and survives node restarts, affecting wallet synchronization tools like lightwalletd. The issue arises because pop_tip does not clean up stale subtree root data properly, unlike pop_root. The problem does not affect consensus validation but can cause incorrect wallet states. Fixed in zebrad 4.5.0 and zebra-state 7.0.0.

CVSS v3.1

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L

Affected software

crates.ioghsa
zebra-state
Affected versions
<7.0.0
crates.ioghsa
zebrad
Affected versions
<4.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 23:10:03 UTC

Technical Analysis

The vulnerability occurs in zebrad versions up to v4.4.1 where the pop_tip method, used to revert the tip block during chain forks, fails to remove stale Sapling and Orchard note commitment subtree root data from the in-memory non-finalized state. When the chain finalizes, this stale data is persisted to RocksDB, causing on-disk corruption of subtree root history. This affects the z_getsubtreesbyindex RPC used by lightwalletd for wallet synchronization, potentially leading to incorrect wallet states. The pop_root method correctly cleans up subtree roots, but pop_tip does not, causing an asymmetry in state cleanup. Other state elements like nullifiers and UTXOs are unaffected. The issue is fixed by adding subtree root cleanup to pop_tip in zebra-state 7.0.0 and zebrad 4.5.0.

Potential Impact

The corruption of Sapling and Orchard subtree root history persists on disk and survives node restarts. Downstream consumers relying on z_getsubtreesbyindex, such as lightwalletd and light wallets, may receive incorrect subtree roots, causing wallet synchronization failures or incorrect wallet states. This does not directly impact consensus validation or block acceptance but affects wallet functionality. Recovery requires rebuilding the state database from scratch.

Mitigation Recommendations

A fix is available in zebra-state 7.0.0 and zebrad 4.5.0 that addresses the subtree root cleanup in pop_tip. Operators should upgrade to these versions to resolve the issue. There is no configuration-level workaround. Operators can mitigate downstream impact by periodically verifying subtree root consistency using z_getsubtreesbyindex against a known-good reference. Recovery from corruption requires rebuilding the state database.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-2gf8-q9rr-jq3h
Osv Schema Version
1.4.0
Aliases
["CVE-2026-52733"]
Ecosystems
["crates.io"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a46ecb527e9c7971943c8cc

Added to database: 07/02/2026, 22:56:53 UTC

Last enriched: 07/02/2026, 23:10:03 UTC

Last updated: 07/02/2026, 23:10:03 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses