CVE-2026-52735
ZEBRA: Consensus divergence via P2SH sigop undercount in pure-Rust disabled-opcode parser
Also known as GHSA-gf9r-m956-97qx
Mitigation
- Upgrade zebra-script to 7.0.0 or later.
- Upgrade zebrad to 4.5.0 or later.
Who should check
- Projects that depend on crates.io package zebra-script (< 7.0.0)
- Projects that depend on crates.io package zebrad (< 4.5.0)
- Anyone running ZcashFoundation zebra < 4.5.0
Vulnerability facts
- Affected
- zebra-script < 7.0.0; zebrad < 4.5.0
- Fixed in
- 7.0.0, 4.5.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 0.51% chance of exploitation in 30 days (percentile 36, 2026-11-26)
- CWE
- CWE-684
- Modified
Description
ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, Zebra can accept a block that zcashd rejects because the P2SH signature-operation counter undercounts redeem scripts containing a disabled opcode followed by signature opcodes. In zebra-script/src/lib.rs, p2sh_input_sigop_count used the pure-Rust script::Code::sig_op_count path, whose try_fold parser stops at disabled opcodes such as OP_CODESEPARATOR and returns only the partial count accumulated before the error. The zcashd reference implementation continues static signature-operation counting through disabled opcodes, so an attacker can broadcast P2SH spends that Zebra counts below MAX_BLOCK_SIGOPS while zcashd counts above the 20,000-operation limit. If a Zebra miner includes those transactions, Zebra validators accept the block while zcashd validators reject it, creating a consensus chain split that affects network integrity and availability without requiring the attacker to produce a block. This issue is fixed in version 4.5.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io zebra-script | < 7.0.0 | 7.0.0 | osv |
| crates.io zebrad | < 4.5.0 | 4.5.0 | osv |
| ZcashFoundation zebra | < 4.5.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-52735. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-52735.md Affected: zebra-script < 7.0.0; zebrad < 4.5.0 Fixed in: 7.0.0, 4.5.0 Steps: 1. Search this machine and project for zebra-script (crates.io), zebrad (crates.io), ZcashFoundation zebra: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://github.com/ZcashFoundation/zebra/releases/tag/v4.5.0
- https://github.com/AlfredoG87/zcash_script/blob/v0.4.4/src/script/iter.rs#L104-L115
- https://github.com/ZcashFoundation/zebra
- https://github.com/ZcashFoundation/zebra/blob/d4cd662c716382f6397d2a730148025a1ca79fec/zebra-consensus/src/block.rs#L140
- https://github.com/ZcashFoundation/zebra/blob/d4cd662c716382f6397d2a730148025a1ca79fec/zebra-script/src/lib.rs#L383-L400
FAQ
Is CVE-2026-52735 being exploited?
There is no confirmed exploitation: CVE-2026-52735 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.51% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-52735?
Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-52735?
zebra-script < 7.0.0; zebrad < 4.5.0.
Is there a fix for CVE-2026-52735?
Yes. Fixed in 7.0.0, 4.5.0. Upgrade zebra-script to 7.0.0 or later. Upgrade zebrad to 4.5.0 or later.
How do I check if I'm affected by CVE-2026-52735?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.