Skip to main content

CVE-2026-40881

MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-04-18 https://github.com/ZcashFoundation/zebra GHSA-xr93-pcq3-pxf8
6.3
CVSS 4.0 · Vendor: https://github.com/ZcashFoundation/zebra
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open network connection to Zebra node
  2. Delivery
    Craft oversized addr message with 233,016 entries
  3. Exploit
    Send message to trigger pre-allocation
  4. Execution
    Repeat across multiple connections
  5. Persist
    Accumulate out-of-memory pressure
  6. Impact
    Zebra 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

cargo zebra-network fix: 5.0.1
cargo zebrad fix: 4.3.1

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

Vendor (https://github.com/ZcashFoundation/zebra) PRIMARY 6.3 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
Low

Lifecycle Timeline

3
CVSS changed
Apr 21, 2026 - 20:22 NVD
6.3 (MEDIUM)
Patch released
Apr 18, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 18, 2026 - 00:42 nvd
MEDIUM 6.3

DescriptionCVE.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:

  1. Creating addr or addrv2 messages with a large number of entries.
  2. 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

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Affected Products (CPE)CVE.org

pkg:rust/zebrad
pkg:rust/zebra-network

Related Vulnerabilities in Zebra Blockchain Verification Issues

View all 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy