ZcashFoundation zebrad
Zebra: addr/addrv2 Deserialization Resource Exhaustion
ZEBRA is a Zcash node written entirely in Rust. Prior to zebrad version 4.3.0 and zebra-network version 5.0.1, when deserializing addr or addrv2 messages, which contain vectors of addresses, Zebra would fully deserialize them up to a maximum length (over 233,000) that was derived from the 2 MiB message size limit. This is much larger than the actual limit of 1,000 messages from the specification. Zebra would eventually check that limit but, at that point, the memory for the larger vector was already allocated. An attacker could cause out-of-memory aborts in Zebra by sending multiple such messages over different connections. This vulnerability is fixed in zebrad version 4.3.0 and zebra-network version 5.0.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.3.1
Fixed in 4.3.1
- < 5.0.1
Fixed in 5.0.1
Mitigation
Upgrade zebrad to 4.3.1 or later.
Upgrade zebra-network to 5.0.1 or later.
References
- Vendor advisory github.com/ZcashFoundation/zebra/security/advi…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.