RubySec

Providing security resources for the Ruby community

CVE-2026-140015 (websocket-driver): Memory exhaustion after WebSocket close

Memory exhaustion after WebSocket close

Published: November 26, 2026

SECURITY IDENTIFIERS

GEM

websocket-driver

SEVERITY

CVSS v3.x: 7.5 (High)

PATCHED VERSIONS

>= 0.9.1

DESCRIPTION

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.

Details

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.

RELATED