CVE-2026-40881 Zebra: addr/addrv2 Deserialization Resource Exhaustion
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
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.
Upgrade path
6 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io zebra-network(crates.io) | < 5.0.1 | 5.0.1 | Fixed |
| crates.io zebrad(crates.io) | < 4.3.1 | 4.3.1 | Fixed |
| zfnd zebra-network | < 5.0.1 | 5.0.1 | Fixed |
| zfnd zebrad | < 4.3.1 | 4.3.1 | Fixed |
| ZcashFoundation zebra-network | = < 5.0.1 | No fix listed | Versions listed |
| ZcashFoundation zebrad | = < 4.3.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io zebrad(crates.io) | < 4.3.1 | 4.3.1 |
| crates.io zebra-network(crates.io) | < 5.0.1 | 5.0.1 |
| ZcashFoundation zebrad | = < 4.3.1 | No fix listed |
| ZcashFoundation zebra-network | = < 5.0.1 | No fix listed |
| zfnd zebra-network | < 5.0.1 | 5.0.1 |
| zfnd zebrad | < 4.3.1 | 4.3.1 |
References
- https://github.com/ZcashFoundation/zebra/security/advisories/GHSA-xr93-pcq3-pxf8 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com