Zebra state: Zebra: Finalized address balance credit-first overflow on consensus-valid blocks (CVE-2026-52738)
### Am I affected You are affected if: 1. You run `zebrad` up to and including `v4.4.1`. 2. Your node processes blocks on any Zcash network. ### Summary The finalized transparent address balance writer processes all newly-created outputs (credits) before processing spent outputs (debits) within the same block. A consensus-valid block containing a long chain of same-address transparent self-spends can cause the intermediate per-address balance during the credit pass to exceed `MAX_MONEY`, triggering a panic in the finalized state writer. Because the triggering block is consensus-valid (zcashd accepts it), the panic recurs on restart when the node re-encounters the same block. This creates a persistent chain halt that can only be resolved by a software patch. ### Details The finalized state writer at `zebra-state/src/service/finalized_state/zebra_db/transparent.rs` iterates all transaction outputs in a block and credits them to per-address balances before iterating inputs and debiting spent outputs. When a block contains many transparent self-spends to the same address, the intermediate credit-only balance can exceed the `MAX_MONEY` supply cap even though the final net balance (credits minus debits) is valid. The code panics on the intermediate overflow via `.expect()` on the balance addition. Under Zebra's `panic = "abort"` release profile, this terminates the process. On restart, the node re-downloads and re-processes the same consensus-valid block, triggering the same panic. An attacker with approximately 1,100–2,100 ZEC and mining capability can construct a block that permanently halts all Zebra nodes. The attacker recovers their capital (the self-spends return funds to the same address), so the net cost is the mining effort only. ### Patches Patched in Zebra 4.4.2. The fix processes credits and debits together per transaction rather than all credits then all debits, matching zcashd's approach. ### Workarounds No workaround is available. Upgrade to Zebra 4.4.2. ### Impact A single consensus-valid mined block can permanently halt all Zebra nodes on the network. The halt persists across restarts. Recovery requires deploying a patched version. Downstream consumers (light wallets, exchanges, mining infrastructure) lose service for the duration of the halt. ### Credit Reported by `@sangsoo-osec`.
AI Analysis
Technical Summary
The vulnerability in Zebra's finalized state writer arises because it processes all transaction outputs (credits) before inputs (debits) within a block, causing intermediate per-address balances to temporarily exceed the maximum allowed money supply (MAX_MONEY) when a block contains a long chain of transparent self-spends to the same address. This triggers a panic due to an overflow check, terminating the node process. Since the block is consensus-valid, the node reprocesses it on restart, causing a persistent halt. An attacker with mining capability and approximately 1,100–2,100 ZEC can create such a block, halting all Zebra nodes until they upgrade to version 4.4.2, which fixes the issue by processing credits and debits together per transaction.
Potential Impact
A single consensus-valid block can cause all Zebra nodes running vulnerable versions to panic and halt permanently, disrupting network operation and downstream services such as light wallets, exchanges, and mining infrastructure. The halt persists across node restarts, requiring deployment of the patched version to recover. The attacker incurs only mining costs, as the self-spends return funds to the same address.
Mitigation Recommendations
Upgrade Zebra nodes to version 4.4.2 or later, where the vulnerability is fixed by processing credits and debits together per transaction. No workaround is available. Patch status is confirmed by the vendor advisory.
Zebra state: Zebra: Finalized address balance credit-first overflow on consensus-valid blocks (CVE-2026-52738)
Description
### Am I affected You are affected if: 1. You run `zebrad` up to and including `v4.4.1`. 2. Your node processes blocks on any Zcash network. ### Summary The finalized transparent address balance writer processes all newly-created outputs (credits) before processing spent outputs (debits) within the same block. A consensus-valid block containing a long chain of same-address transparent self-spends can cause the intermediate per-address balance during the credit pass to exceed `MAX_MONEY`, triggering a panic in the finalized state writer. Because the triggering block is consensus-valid (zcashd accepts it), the panic recurs on restart when the node re-encounters the same block. This creates a persistent chain halt that can only be resolved by a software patch. ### Details The finalized state writer at `zebra-state/src/service/finalized_state/zebra_db/transparent.rs` iterates all transaction outputs in a block and credits them to per-address balances before iterating inputs and debiting spent outputs. When a block contains many transparent self-spends to the same address, the intermediate credit-only balance can exceed the `MAX_MONEY` supply cap even though the final net balance (credits minus debits) is valid. The code panics on the intermediate overflow via `.expect()` on the balance addition. Under Zebra's `panic = "abort"` release profile, this terminates the process. On restart, the node re-downloads and re-processes the same consensus-valid block, triggering the same panic. An attacker with approximately 1,100–2,100 ZEC and mining capability can construct a block that permanently halts all Zebra nodes. The attacker recovers their capital (the self-spends return funds to the same address), so the net cost is the mining effort only. ### Patches Patched in Zebra 4.4.2. The fix processes credits and debits together per transaction rather than all credits then all debits, matching zcashd's approach. ### Workarounds No workaround is available. Upgrade to Zebra 4.4.2. ### Impact A single consensus-valid mined block can permanently halt all Zebra nodes on the network. The halt persists across restarts. Recovery requires deploying a patched version. Downstream consumers (light wallets, exchanges, mining infrastructure) lose service for the duration of the halt. ### Credit Reported by `@sangsoo-osec`.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Zebra's finalized state writer arises because it processes all transaction outputs (credits) before inputs (debits) within a block, causing intermediate per-address balances to temporarily exceed the maximum allowed money supply (MAX_MONEY) when a block contains a long chain of transparent self-spends to the same address. This triggers a panic due to an overflow check, terminating the node process. Since the block is consensus-valid, the node reprocesses it on restart, causing a persistent halt. An attacker with mining capability and approximately 1,100–2,100 ZEC can create such a block, halting all Zebra nodes until they upgrade to version 4.4.2, which fixes the issue by processing credits and debits together per transaction.
Potential Impact
A single consensus-valid block can cause all Zebra nodes running vulnerable versions to panic and halt permanently, disrupting network operation and downstream services such as light wallets, exchanges, and mining infrastructure. The halt persists across node restarts, requiring deployment of the patched version to recover. The attacker incurs only mining costs, as the self-spends return funds to the same address.
Mitigation Recommendations
Upgrade Zebra nodes to version 4.4.2 or later, where the vulnerability is fixed by processing credits and debits together per transaction. No workaround is available. Patch status is confirmed by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w834-cf6p-9m9w
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-52738"]
- Ecosystems
- ["crates.io"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a46ecb627e9c7971943c9a9
Added to database: 07/02/2026, 22:56:54 UTC
Last enriched: 07/02/2026, 23:11:04 UTC
Last updated: 07/31/2026, 12:27:30 UTC
Views: 42
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.