Vulnerability DatabaseGHSA-7c6x-34q5-4g2j

GHSA-7c6x-34q5-4g2j: 
Ruby vulnerability analysis and mitigation

Summary

A WebSocket server implemented using websocket-driver can be made to buffer data in memory indefinitely by a client that connects, sends a single close frame, and then leaves its side of the connection open while it continues to send more data over the connection.

Details

When used as documented, a server handles WebSocket connections by piping all bytes received over a TCP socket into the driver object provided by this library. On receipt of a WebSocket close frame, the driver emits a close event, which the caller should handle by closing the TCP socket. However, since TCP allows sockets to remain half-open, the client can keep its side of the socket open and keep sending data. Due to the state the driver enters after the close event, this data will be buffered in memory but never consumed by the parser. An attacker can exploit this by sending an indefinite stream of bytes over the socket until it causes the server to run out of memory. This has been mitigated by destroying the buffer when the socket undergoes any failure event, including an explicit close. The buffer is dereferenced and no further data will be added to it, and it should eventually be garbage collected along with the rest of the connection objects.

Impact

A server using websocket-driver can be made to run out of memory and crash by an unauthenticated remote attacker by sending sufficient data over a single socket.


Source: NVD

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-7c6x-34q5-4g2jHIGH7.5
  • Ruby logoRuby
  • websocket-driver
NoYesNov 26, 2026
GHSA-548x-44fh-cxv4MEDIUM6.1
  • Ruby logoRuby
  • dandruff
NoYesNov 26, 2026
GHSA-477m-5qf8-pjv6MEDIUM5.9
  • Ruby logoRuby
  • faye-websocket
NoYesNov 26, 2026
GHSA-qwvx-w3vv-2r28LOWN/A
  • Ruby logoRuby
  • jwe
NoYesNov 26, 2026
GHSA-9hgp-rr8g-x7cqHIGHN/A
  • Ruby logoRuby
  • jwe
NoYesNov 26, 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