Vulnerability DatabaseGHSA-48wj-x5q3-ggfq

GHSA-48wj-x5q3-ggfq: 
Rust vulnerability analysis and mitigation

Summary

Hyperswarm counts connections against max_peers in ConnectionSet, but a slot is only released when connection setup fails (server_failure_rx, peeroxide/src/swarm.rs ~L699) or on dedup (~L993). Closing or dropping an established SwarmConnection never releases its slot.

Impact

  • After max_peers connections in total (reconnects included), a server ignores every new handshake (swarm.rs ~L1296, ~L1685) and the client side stops dialing discovered peers (~L856) until the process restarts.
  • A remote attacker can trigger this deliberately with max_peers throwaway key pairs.
  • A peer that disconnected can never reconnect with the same key: connections.has(&pk) stays true.

Suggested fix

Tie each slot to a guard held by SwarmConnection, released on drop over the existing actor channel, with a per-slot id so dropping an old connection never frees a newer slot for the same key (as in sshcrab's vendored patch). Keep the guard private. Consider whether moving conn.peer out of SwarmConnection should keep the slot held.

Fix

A connection's slot now follows the connection itself, as in Node's hyperswarm:

  • Released on close. The slot is held by the connection's UDX stream. It is released when the stream is closed, whichever side closed it, once the application has read what was left on it.
    • A new libudx handle reports when a stream is over and when its storage is released.
    • A stream that has ended in both directions is now closed.
  • Per-slot id. A late release from an old connection can't free the slot of a newer connection with the same key.
  • Duplicates destroyed. As in Node, the losing connection of a duplicate pair is destroyed, so the remote releases it too.
  • Setup can't hold a slot indefinitely. Connections the server side accepts must finish setup within 20 s, or 50 s through a blind relay. Dials must finish within 90 s, with per-step deadlines.
  • No overshoot. Dials in progress and staged holepunches take their slot when they start, so a swarm never holds more than max_peers connections. Fixed in commits 6e2e0cd, a732601, 5e769cd, afebbbd and 7b072dd.

Reported by

Joachim Schiele (@qknight), #49 / https://github.com/nixcloud/sshcrab#7-changes-to-the-peeroxide-code


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-78jj-xfpm-g6pxHIGH7.8
  • JavaScript logoJavaScript
  • alint-dsl
NoYesNov 22, 2026
GHSA-pchg-rmv6-56f4MEDIUMN/A
  • Rust logoRust
  • peeroxide-dht
NoYesNov 22, 2026
GHSA-m2w2-wg2f-5p57HIGHN/A
  • Rust logoRust
  • peeroxide-dht
NoYesNov 22, 2026
GHSA-4jh8-33j3-h73jHIGHN/A
  • Rust logoRust
  • peeroxide-dht
NoYesNov 22, 2026
GHSA-48wj-x5q3-ggfqMEDIUMN/A
  • Rust logoRust
  • peeroxide
NoYesNov 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management