Skip to main content
EPSS 0.4%top 69%

zebrad has unbounded memory leak in mempool download pipeline via timeout path cancel_handles retention (CVE-2026-52734)

0
Medium
Published: 08/18/2026 (08/18/2026, 19:19:56 UTC)
Source: GCVE Database
Product: zebrad

Description

ZEBRA is a Zcash node written entirely in Rust. Prior to 4.5.0, an unauthenticated P2P peer can cause the mempool download pipeline to retain transactions after verification reaches the outer RATE_LIMIT_DELAY timeout. In zebrad/src/components/mempool/downloads.rs, Downloads::poll_next removed cancel_handles entries after success and ordinary verification errors, but tokio::time::error::Elapsed did not carry the UnminedTxId needed to remove the timed-out entry. Each retained cancel_handles entry could hold a full Gossip::Tx(UnminedTx), while normal mined-transaction cleanup could not match attacker transactions and no periodic garbage collection or count cap existed. Sustained traffic therefore caused monotonic memory growth until swap pressure degraded the node or the operating system terminated the zebrad process for exhausting memory. This issue is fixed in version 4.5.0.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

crates.ioghsa
zebrad
Affected versions
<4.5.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 11:14:51 UTC

Technical Analysis

The vulnerability in zebrad's mempool download pipeline arises from a bug in handling timeout errors during transaction verification. When a verification task times out at the 73-second RATE_LIMIT_DELAY boundary, the error returned (tokio::time::error::Elapsed) carries no transaction ID, so the corresponding cancel_handles map entry is never removed. This map entry includes the full deserialized transaction, which can be large (up to ~9 MB). Because entries accumulate without garbage collection or eviction, memory usage grows unboundedly, leading to eventual out-of-memory process termination. The fix involves wrapping the timeout future to preserve the transaction ID on error and removing the cancel_handles entry on timeout. The vulnerability affects zebrad versions prior to 4.5.0 and requires inbound P2P connections and an active mempool to be exploitable.

Potential Impact

The vulnerability causes a gradual, unbounded memory leak in zebrad nodes, leading to eventual out-of-memory termination or severe degradation due to swap pressure. The leak is triggered by unauthenticated inbound P2P traffic and accumulates at approximately 685 KB/s per connection in worst-case scenarios. There is no impact on consensus, no loss of funds, and no on-disk data corruption. The node continues normal operation until memory exhaustion occurs. An attacker must sustain traffic for hours to exhaust typical server memory.

Mitigation Recommendations

A patch is available that fixes the memory leak by ensuring the transaction ID is preserved on timeout errors and the corresponding cancel_handles entry is removed. Operators should upgrade to zebrad version 4.5.0 or later. There is no configuration-level workaround; restarting the node clears accumulated entries but does not prevent recurrence. Operators running in memory-constrained environments should be aware of potential OOM kills until patched.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-65jj-fmw8-468q
Osv Schema Version
1.4.0
Aliases
["CVE-2026-52734"]
Ecosystems
["crates.io"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a46ecb527e9c7971943c8aa

Added to database: 07/02/2026, 22:56:53 UTC

Last enriched: 08/19/2026, 11:14:51 UTC

Last updated: 09/14/2026, 22:01:35 UTC

Views: 93

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses