CVE-2026-54465
JSON

6.3medium

websocket-driver: Memory exhaustion in HTTP header parser

Severity
6.3medium 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-8j3g-f24p-4mpw

Description

websocket-driver is a WebSocket protocol handler with pluggable I/O. Prior to 0.8.1, when websocket-driver is used to implement a WebSocket server on top of a TCP server using WebSocket::Driver.server() or to complement a WebSocket client, a peer can make a single connection consume an unbounded amount of memory by sending an HTTP request or response with a never-ending list of headers. This can lead to the receiving 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.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/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:P/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 no, 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, when websocket-driver is used to implement a WebSocket server on top of a TCP server using WebSocket::Driver.server() or to complement a WebSocket client, a peer can make a single connection consume an unbounded amount of memory by sending an HTTP request or response with a never-ending list of headers. This can lead to the receiving process running out of memory. This issue is fixed in version 0.8.1.

GitHub Advisory Database
Impact

If this library is used to implement a WebSocket server on top of a TCP server (rather than an HTTP server or framework) using the WebSocket::Driver.server() method, or, if it is used to complement a WebSocket client, then a peer can make a single connection consume an unbounded amount of memory by sending an HTTP request or response with a never-ending list of headers. This can lead to the receiving process running out of memory.

Patches

The issue has been patched in version 0.8.1, by limiting the total size of HTTP request/response lines and headers accepted by the parser to 32 kB. 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, cuando websocket-driver se utiliza para implementar un servidor WebSocket sobre un servidor TCP utilizando WebSocket::Driver.server() o para complementar un cliente WebSocket, un par puede hacer que una única conexión consuma una cantidad ilimitada de memoria enviando una solicitud o respuesta HTTP con una lista interminable de encabezados. Esto puede provocar que el proceso receptor se quede sin memoria. Este problema está solucionado en la versión 0.8.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54465 changed 2026-07-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-8j3g-f24p-4mpw changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54465 changed 2026-10-24Public domain