All vulnerabilities

RubyGems

CVE-2026-140015

websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed

Severity
High 7.5
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
0.9.1
Exploit chance
0.8% in the next 30 daysHigher than 58% of CVEs. EPSS by FIRST, 1 Dec 2026
Weakness
Allocation without limits (CWE-770)
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-7c6x-34q5-4g2j
Sources
OSV.dev and GitHub

Description

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.

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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
websocket-driverRubyGems · osv:RubyGems:websocket-driver
  • Every version before 0.9.1

About websocket-driver

Total downloads (RubyGems)
676,486,777RubyGems, 1 Dec 2026

Vulnerabilities in websocket-driver

In our list
3
Published in the last 12 months
3
Critical, last 12 months
1
High, last 12 months
2
Known exploited
0
Search the list for websocket-driver

References