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 package | Versions | Reported by |
|---|---|---|
| faye websocket-driver-ruby | < 0.8.1 | CVE List |
| websocket-driver (RubyGems) | before 0.8.1 | GitHub Advisory Database |
| faye websocket-driver | before 0.8.1 | NVD |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54465 changed 2026-07-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8j3g-f24p-4mpw changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-54465 changed 2026-10-24 | Public domain |