ZcashFoundation zebra
Missing copy constraint in halo2_gadgets variable-base scalar multiplication allows under-constrained base, breaking Orchard Action circuit soundness
ZEBRA is a Zcash node written entirely in Rust. Prior to zebrad 5.0.0, halo2_gadgets 0.5.0, orchard 0.14.0, zcash_primitives 0.28.0, and zcashd 6.20.0, the variable-base scalar multiplication gadget in halo2_gadgets/src/ecc/chip/mul/incomplete.rs used assign_advice() for the base point without a copy constraint tying it to the actual base, allowing a malicious prover to produce a valid proof for an Orchard Action with an under-constrained base point and bypass the diversified-address-integrity check that binds pk_d, g_d, ivk, the nullifier (nf), and the spend validating key (ak) to the note being spent. This issue is fixed in zebrad 5.0.0, halo2_gadgets 0.5.0, orchard 0.14.0, zcash_primitives 0.28.0, and zcashd 6.20.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.0.0
Fixed in 5.0.0
- < 0.5.0
Fixed in 0.5.0
- < 0.14.0
Fixed in 0.14.0
- < 0.28.0
Fixed in 0.28.0
- < 6.20.0
Fixed in 6.20.0
Mitigation
Upgrade zebra to 5.0.0 or later.
Upgrade halo2_gadgets to 0.5.0 or later.
Upgrade orchard to 0.14.0 or later.
Upgrade librustzcash to 0.28.0 or later.
Upgrade zcash to 6.20.0 or later.
References
- Vendor advisory github.com/ZcashFoundation/zebra/security/advi…
- Release notes github.com/ZcashFoundation/zebra/releases/tag/…
- Release notes github.com/zcash/halo2/releases/tag/halo2_gadg…
3 more
- Release notes github.com/zcash/librustzcash/releases/tag/zca…
- Release notes github.com/zcash/orchard/releases/tag/0.14.0
- Release notes github.com/zcash/zcash/releases/tag/v6.20.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.