Vulnerability DatabaseGHSA-pchg-rmv6-56f4

GHSA-pchg-rmv6-56f4: 
Rust vulnerability analysis and mitigation

Summary

read_frame (peeroxide-dht/src/secret_stream.rs ~L520) takes a 3-byte length and allocates vec![0u8; len] (up to 16,777,215 bytes) before reading the body. It is used for the Noise handshake messages (~L140-L247) as well as for authenticated traffic, so an unauthenticated peer controls the size of the allocation.

Impact

Each incoming connection can make the node reserve up to 16 MiB before the peer proves anything, and hold it as long as it trickles the body. Many concurrent connections multiply this. Noise handshake messages are only a few hundred bytes.

Suggested fix

  • Cap handshake frames at a small limit (e.g. a few KiB) and fail the handshake above it.
  • For post-handshake frames, consider growing the buffer as data arrives rather than allocating the full declared length up front.
  • Add tests for an oversized handshake frame.

Fix

  • Handshake frames are capped. Every frame of the Noise handshake is limited to 4 KiB (MAX_HANDSHAKE_FRAME_LEN). A larger declared length fails the handshake before anything is allocated. Real handshake messages are a few hundred bytes.
  • Authenticated frames grow as data arrives. After the handshake, a frame's buffer grows as its bytes arrive, rather than allocating the full declared length up front. A peer that declares 16 MiB and trickles it in gets memory only for what it has actually sent.
  • Covered by tests with an oversized handshake frame and a frame that declares more than it sends. Fixed in commit 6e2e0cd.

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