CVE-2026-41583: Zebra Vulnerable to Consensus Divergence in Transparent Sighash Hash-Type Handling
CVE-2026-41583: Consensus Divergence in Transparent Sighash Hash-Type Handling Summary After a refactoring, Zebra failed to validate a consensus rule that restricted the possible values of sighash hash types for V5 transactions which were enabled in the NU5 network upgrade.
Published Apr 18, 2026 · Updated May 12, 2026
Affected packages
zebrad
- Ecosystem
- Rust (crates.io)
- Affected
- < 4.3.1
- Fixed in
- 4.3.1
- Check
cargo tree -i zebrad
zebra-script
- Ecosystem
- Rust (crates.io)
- Affected
- < 5.0.2
- Fixed in
- 5.0.2
- Check
cargo tree -i zebra-script
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
CVE-2026-41583: Consensus Divergence in Transparent Sighash Hash-Type Handling
Summary
After a refactoring, Zebra failed to validate a consensus rule that restricted the possible values of sighash hash types for V5 transactions which were enabled in the NU5 network upgrade. Zebra nodes could thus accept and eventually mine a block that would be considered invalid by zcashd nodes, creating a consensus split between Zebra and zcashd nodes.
In a similar vein, for V4 transactions, Zebra mistakenly used the "canonical" hash type when computing the sighash while zcashd (correctly per the spec) uses the raw value, which could also crate a consensus split.
Severity
Critical - This is a Consensus Vulnerability that could allow a malicious party to induce network partitioning, service disruption, and potential double-spend attacks against affected nodes.
Note that the impact is currently alleviated by the fact that currently most miners run zcashd.
Affected Versions
All Zebra versions prior to version 4.3.1. (Some older versions are not impacted but are no longer supported by the network.)
Description
Verification of transparent transactions inherits the Bitcoin Script verification code in C++. Since it is consensus-critical, this code was called from Zebra through foreign function interface (FFI). That interface was clunky because it required parsing the whole transaction in C++ code, which would then pull Rust libraries which could get in conflict with Zebra code. A refactoring was done so that only the verification itself was done in C++, and the rest done by Rust code, using a callback. However, in this refactoring, it was not noticed that a particular consensus rule - only accepting known hash types in transparent transaction signatures - was being enforced in C++ code and thus had to be enforced by the Rust caller.
An attacker could exploit this by:
- Submitting a V4 or V5 transaction with an invalid hash type
- The V5 transaction would be accepted by Zebra nodes but not by
zcashdnodes (and vice-versa for V4), creating a consensus split in the network.
Impact
Consensus Failure
- Attack Vector: Network.
- Effect: Network partition/consensus split.
- Scope: Any Zebra affected Zebra node
Fixed Versions
This issue is fixed in Zebra 4.3.1.
The fix adds the consensus check in the caller of the C++ verification code. It also uses the raw hash type for V4 sighash computations.
Mitigation
Users should upgrade to Zebra 4.3.1 or later immediately.
There are no known workarounds for this issue. Immediate upgrade is the only way to ensure the node remains on the correct consensus path and is protected against malicious chain forks.
Credits
Thanks Alex “Scalar” Sol for finding and reporting the issue, and to @sangsoo-osec who independently found the same issue and demonstrated that the V4 variant was also exploitable.
Credited to conradoplg, mpguerra, sangsoo-osec.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesCVE-2026-54496
Zebra: Missing copy constraint in halo2_gadgets variable-base scalar multiplication allows under-constrained base, breaking Orchard Action circuit soundness
critical9.3Jul 6, 2026CVE-2026-52735
zebrad has consensus divergence via P2SH sigop undercount in pure-Rust disabled-opcode parser
critical9.3Jul 2, 2026GHSA-pvmv-cwg8-v6c8
Zebra v4.4.0 still accepts V5 SIGHASH_SINGLE without a corresponding output
critical9.3May 8, 2026CVE-2026-44497
Zebra has Consensus Divergence in Transparent Sighash Hash-Type Handling due to Stale Buffer
critical9.1May 7, 2026CVE-2026-44498
Zebra's Block Validator Undercounts Coinbase and P2SH Sigops
critical7.5May 7, 2026GHSA-cwfq-rfcr-8hmp
Zebra's Transparent SIGHASH_SINGLE Handling Diverges from zcashd for Corresponding Outputs
critical9.2May 7, 2026
