Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-40881 EUVD-2026-24268GHSA-xr93-pcq3-pxf8

Zebra: addr/addrv2 Deserialization Resource Exhaustion

Published Apr 21, 2026 · Updated Apr 21, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
ZcashFoundation zebrad < 4.3.1 —
ZcashFoundation zebra-network < 5.0.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io zebra-network < 5.0.1 5.0.1 GHSA-xr93-pcq3-pxf8
crates.io zebrad < 4.3.1 4.3.1 GHSA-xr93-pcq3-pxf8

References