CVE-2026-40881
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOpen network connection to Zebra node
-
DeliveryCraft oversized addr message with 233,016 entries
-
ExploitSend message to trigger pre-allocation
-
ExecutionRepeat across multiple connections
-
PersistAccumulate out-of-memory pressure
-
ImpactZebra process crashes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerability requires only that a Zebra node accepts peer-to-peer connections from the network and processes incoming addr or addrv2 messages, which is the default configuration for any Zebra node participating in the Zcash network. No special network configuration, authentication credentials, or non-default settings are required. The attacker simply needs network reachability to the Zebra node's peer port (typically TCP 18233 for mainnet, 18233 for testnet). No user interaction is required. The only limiting factor is that Zebra must be running and listening for peer connections; isolated nodes (running with peer discovery disabled or firewalled) are not exploitable remotely. Additionally, Zebra's memory constraints (available RAM on the host) determine how many simultaneous messages are needed to exhaust memory, but the allocation pattern is deterministic and exploitable on any hardware configuration. |
| Impact | This is a genuine denial of service vulnerability with moderate real-world risk. CVSS data is not provided, but the attack vector is clearly network-based (AV:N), requires no authentication (PR:N), low attack complexity (AC:L based on straightforward message construction), and results in availability impact (Zebra crash). The lack of CVSS/EPSS scores prevents quantitative comparison, but qualitative analysis shows: (1) no special configuration or user interaction required - default Zebra nodes accept addr/addrv2 messages from any peer; (2) the exploit is trivial to execute given the protocol specification; (3) impact is deterministic (out-of-memory triggers a crash); (4) the vulnerability affects all versions prior to 4.3.1, meaning historical deployments remain exposed. The fix is simple and non-breaking (restricts allocation to spec limit), indicating this is a genuine spec-compliance bug rather than a security trade-off. Confirmation sources include the GitHub Security Advisory (GHSA-xr93-pcq3-pxf8) from the Zcash Foundation, the official repository, and internal code review by maintainers. No active exploitation in the wild has been reported, and no POC code is known, but the attack is sufficiently straightforward that attackers could develop one quickly once the advisory is public. |
| Exploit ScenarioDerived | An attacker crafts a Zcash protocol message (addr or addrv2) containing the maximum allowed serialized size (up to 2 MiB) with address entries, resulting in over 200,000 addresses in a single message. The attacker opens multiple TCP connections to a Zebra node and sends such oversized messages, causing the node to allocate excessive memory for deserialization (e.g., 233,016 addresses × ~9 bytes per address entry in addrv2). After multiple such messages across different connections, the cumulative memory pressure triggers an out-of-memory condition, and the Zebra process crashes. The attacker can repeat this against other nodes in the network or target a specific infrastructure deployment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 18, 2026
Zebra cryptocurrency node prior to version 4.3.1 allocates excessive memory (up to 233,016 addresses) when deserializing addr/addrv2 protocol messages, even though the specification limits messages to 1,000 addresses. An attacker can trigger out-of-memory crashes by sending multiple oversized address messages over different connections. This is a network-accessible denial of service vulnerability affecting all Zebra versions before 4.3.1, with no public exploit code identified but straightforward to execute given the protocol specification.
RemediationAI
Upgrade Zebra immediately to version 4.3.1 or later. The patch modifies the max_allocation() method for addr/addrv2 message types to return 1,000 (the specification limit) instead of the calculated 2 MiB-derived limit, preventing excessive pre-allocation. Users running Zebra nodes should apply this upgrade without delay by updating their Rust dependencies or container images to pull the patched version. The Zcash Foundation has stated there are no known workarounds; the only mitigation is to upgrade. For users unable to immediately patch, temporary network isolation (restricting connections to trusted peers only, or operating behind a strict firewall with rate-limiting on peer connections) could reduce exposure, but this significantly impacts node functionality and peer participation in the Zcash network. The recommended approach is immediate upgrade, as the patch is non-breaking and directly addresses the root cause. Patch availability confirmed in the official GitHub Security Advisory and release notes.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in cargo
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Zebra is a Zcash full node implementation written in Rust. The vulnerability exists in the deserialization logic for Bitcoin/Zcash protocol messages addr (IPv4/IPv6 addresses) and addrv2 (extended address format). The affected code in codec.rs uses the zcash_deserialize() trait, which respects a max_allocation() limit derived from the 2 MiB protocol message size limit. For AddrV1, this calculated to 2,097,152 bytes ÷ 30 bytes per address = 69,904 addresses; for AddrV2, it calculated to 2,097,152 ÷ 9 = 233,016 addresses. This is a classic deserialization resource exhaustion pattern (CWE-770) where the pre-allocation size check occurs before the semantic validation check. The fix reduces max_allocation() to return 1,000 for these types, enforcing the specification limit prior to memory allocation rather than after.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
Primary rating from Vendor (https://github.com/ZcashFoundation/zebra) · only source for this CVE.
CVSS VectorVendor: https://github.com/ZcashFoundation/zebra
Lifecycle Timeline
3DescriptionCVE.org
CVE-2026-40881: addr/addrv2 Deserialization Resource Exhaustion
Summary
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.
Severity
Moderate - This is a Denial of Service Vulnerability that could allow an attacker to crash a Zebra node.
Affected Versions
All Zebra versions prior to version 4.3.1.
Description
The vulnerability exists in the read_addr/addrv2 functions in codec.rs. It deserializes a vector of addresses with the zcash_deserialize() trait method, which uses as a upper bound the result of T::max_allocation(). For theses types, it was derived from dividing the max message size (2 MiB) by the minimum serialized size of one entry. For AddrV1: 2_097_152 / 30 = 69,904. For AddrV2: 2_097_152 / 9 = 233,016. Only after deserialization was the MAX_ADDRS_IN_MESSAGE = 1000 limit checked.
An attacker could exploit this by:
- Creating
addroraddrv2messages with a large number of entries. - Submitting them to a Zebra node, possibly through multiple connections, to attempt to get Zebra into an out-of-memory state.
Impact
Denial of Service
- Attack Vector: Network.
- Effect: Zebra node crash.
- Scope: Any impacted Zebra node.
Fixed Versions
This issue is fixed in Zebra 4.3.1.
The fix changes the max_allocation() method for the relevant types to return 1,000, thus blocking larger values prior to deserialization.
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 not vulnerable to the denial of service attack.
Credits
Thanks @Zk-nd3r for finding and reporting the issue, and suggesting the fix.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-xr93-pcq3-pxf8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB