CVE-2026-54463
JSON

6.9medium

websocket-driver: Memory exhaustion via abuse of protocol length headers

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.34% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-ghhp-3qvg-889p

Description

websocket-driver is a WebSocket protocol handler with pluggable I/O. Prior to 0.8.1, draft versions of the WebSocket protocol in websocket-driver include a length header that allows an arbitrarily large integer to be encoded as bytes with the high bit set, and a server or client can send an indefinite sequence of 0x80 or higher bytes that the peer parses into an ever-growing Ruby integer. This can make a WebSocket connection consume an unbounded amount of memory and lead to the host process running out of memory. This issue is fixed in version 0.8.1.

Affected

Product or packageVersionsReported by
faye websocket-driver-ruby< 0.8.1CVE List
websocket-driver (RubyGems)before 0.8.1GitHub Advisory Database
faye websocket-driverbefore 0.8.1NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

websocket-driver is a WebSocket protocol handler with pluggable I/O. Prior to 0.8.1, draft versions of the WebSocket protocol in websocket-driver include a length header that allows an arbitrarily large integer to be encoded as bytes with the high bit set, and a server or client can send an indefinite sequence of 0x80 or higher bytes that the peer parses into an ever-growing Ruby integer. This can make a WebSocket connection consume an unbounded amount of memory and lead to the host process running out of memory. This issue is fixed in version 0.8.1.

GitHub Advisory Database
Impact

The frame format in draft versions of the WebSocket protocol includes a length header that allows an arbitrarily large integer to be encoded as a sequence of bytes with the high bit set. By sending an indefinite sequence of bytes with values 0x80 or above, a server or client can make the other peer parse these bytes into an ever-growing integer. Since Ruby integers are arbitrary precision, this can be used to make a WebSocket connection consume an unbounded amount of memory and lead to the host process running out of memory.

Patches

The issue has been patched in version 0.8.1. All users should upgrade to this version.

Workarounds

No known workarounds exist.

Acknowledgements

This issue was discovered and reported by Pranjali Thakur, DepthFirst Security Research Team.

NVD (es)

websocket-driver es un gestor del protocolo WebSocket con E/S conectable. Antes de la versión 0.8.1, las versiones preliminares del protocolo WebSocket en websocket-driver incluyen una cabecera de longitud que permite que un entero arbitrariamente grande sea codificado como bytes con el bit más significativo activado, y un servidor o cliente puede enviar una secuencia indefinida de bytes 0x80 o superiores que el par analiza en un entero Ruby en constante crecimiento. Esto puede hacer que una conexión WebSocket consuma una cantidad ilimitada de memoria y provocar que el proceso anfitrión se quede sin memoria. Este problema está solucionado en la versión 0.8.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54463 changed 2026-07-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-ghhp-3qvg-889p changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54463 changed 2026-10-24Public domain