{"id":"CVE-2026-144293","aliases":["DEBIAN-CVE-2026-144293","EUVD-2026-143512","GHSA-q3c8-h5pg-2836"],"status":"published","title":"websocket-driver: Excessive memory use caused by draft-75/76 buffering","description":"websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, a server created with WebSocket::Driver.server() and allow_drafts enabled can select the draft-75/76 delimited-frame parser, which continues buffering an unterminated message beyond max_length. An unauthenticated remote client can start a legacy draft text frame and omit its terminating delimiter, causing memory consumption to grow until the server process crashes. 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.00744,"percentile":0.56104,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-770"],"published":"2026-12-03T17:33:33Z","modified":"2026-12-04T22:05:43Z","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-q3c8-h5pg-2836","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/faye/websocket-driver-ruby/commit/5a0bd6f9cbaa800a3796aa974120ad8bdb38ab35","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-144293","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-q3c8-h5pg-2836"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144293.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-144293","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144293","title":"websocket-driver: Excessive memory use caused by draft-75/76 buffering","description":"websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, a server created with WebSocket::Driver.server() and allow_drafts enabled can select the draft-75/76 delimited-frame parser, which continues buffering an unterminated message beyond max_length. An unauthenticated remote client can start a legacy draft text frame and omit its terminating delimiter, causing memory consumption to grow until the server process crashes. This issue is fixed in version 0.9.2.","status":"published","published":"2026-12-03T17:33:33.072Z","modified":"2026-12-03T17:33:33.072Z","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"],"updated_at":"2026-12-03T17:36:08.587217Z"}],"euvd":[{"id":"EUVD-2026-143512","description":"websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, a server created with WebSocket::Driver.server() and allow_drafts enabled can select the draft-75/76 delimited-frame parser, which continues buffering an unterminated message beyond max_length. An unauthenticated remote client can start a legacy draft text frame and omit its terminating delimiter, causing memory consumption to grow until the server process crashes. This issue is fixed in version 0.9.2.","status":"published","published":"2026-12-03T17:33:33Z","modified":"2026-12-03T17:33:33Z","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-03T18:33:37.162921Z"}],"ghsa":[{"id":"GHSA-q3c8-h5pg-2836","title":"websocket-driver: Excessive memory use caused by draft-75/76 buffering","description":"### Summary\n\nA server running `websocket-driver` can be made to buffer data in excess of `max_length` and potentially run out of memory by a client sending a non-terminated stream of message data.\n\n### Details\n\nWhen configured using `allow_drafts: true`, the `websocket-driver` library continues to support legacy draft versions of the WebSocket protocol. These use delimited rather than length-prefixed frames; a frame is initiated by sending `00` and ended by sending `FF`. If a client sends `00` and then sends a long series of bytes, the server will buffer this data in excess of `max_length`, potentially causing it to run out of memory if the message is continued indefinitely.\n\nThis has been mitigated by properly enforcing the `max_length` limit at the point where the data is buffered. It can also be prevented by not setting the `allow_drafts` option.\n\n### Proof of concept\n\nThis script demonstrates how much data is buffered by a draft-75 parser on receipt of a very long unterminated message:\n\n```rb\nrequire 'bundler/setup'\nrequire 'websocket/driver'\n\nclass Sock\n  def write(_) ; end\nend\n\nd = WebSocket::Driver.server(Sock.new, :allow_drafts =\u003e true, :max_length =\u003e 1024)\nd.on(:connect) { d.start }\n\n# draft-75 handshake: NO Sec-WebSocket-Key/Version/Key1/Key2 -\u003e Draft75 selected\nd.parse(\n  \"GET / HTTP/1.1\\r\\n\" +\n  \"Host: localhost\\r\\n\" +\n  \"Upgrade: websocket\\r\\n\" +\n  \"Connection: Upgrade\\r\\n\" +\n  \"Origin: http://localhost\\r\\n\" +\n  \"\\r\\n\")\n\n# One text frame: 0x00, then 10 MB of 0x41, NO terminating 0xFF, in one chunk.\nN = 10 \u003c\u003c 20\nchunk = \"\\x00\" + (\"\\x41\" * (N + 1))\nd.parse(chunk)\n\np d.instance_variable_get(:@delegate)\n    .instance_variable_get(:@reader)\n    .instance_variable_get(:@buffer).bytesize\n\np d.instance_variable_get(:@delegate)\n    .instance_variable_get(:@buffer).size\n```\n\nOn vulnerable versions this will print numbers far in excess of the configured `max_length`.\n\n### Impact\n\nA server with `allow_drafts` enabled can be made to run out of memory and crash by an unauthenticated remote client sending a non-terminating stream of message data.","status":"published","published":"2026-12-04T22:05:42Z","modified":"2026-12-04T22:05:43Z","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-144293","description":"websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, a server created with WebSocket::Driver.server() and allow_drafts enabled can select the draft-75/76 delimited-frame parser, which continues buffering an unterminated message beyond max_length. An unauthenticated remote client can start a legacy draft text frame and omit its terminating delimiter, causing memory consumption to grow until the server process crashes. This issue is fixed in version 0.9.2.","status":"published","published":"2026-12-03T18:17:26.213Z","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"],"updated_at":"2026-12-03T18:19:11.55284Z"}],"osv":[{"id":"CVE-2026-144293","title":"websocket-driver: Excessive memory use caused by draft-75/76 buffering","description":"websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, a server created with WebSocket::Driver.server() and allow_drafts enabled can select the draft-75/76 delimited-frame parser, which continues buffering an unterminated message beyond max_length. An unauthenticated remote client can start a legacy draft text frame and omit its terminating delimiter, causing memory consumption to grow until the server process crashes. This issue is fixed in version 0.9.2.","status":"published","published":"2026-12-03T17:33:33.072Z","modified":"2026-12-04T21:00:18.040749938Z","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:59.725164Z"},{"id":"DEBIAN-CVE-2026-144293","upstream":["CVE-2026-144293"],"description":"websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, a server created with WebSocket::Driver.server() and allow_drafts enabled can select the draft-75/76 delimited-frame parser, which continues buffering an unterminated message beyond max_length. An unauthenticated remote client can start a legacy draft text frame and omit its terminating delimiter, causing memory consumption to grow until the server process crashes. This issue is fixed in version 0.9.2.","status":"published","published":"2026-12-03T18:17:26.213Z","modified":"2026-12-04T05:00:12.961985843Z","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"}]}}
