websocket-driver: Memory exhaustion triggered by client continuing to send message data after the server sent a Close frameGHSA-xr87-hm5c-qpwp
HIGHFix: faye/websocket-driver-ruby@58328fbGHSA-xr87-hm5c-qpwp is a high-severity (CVSS 7.5) CWE-770 vulnerability. A fix is available — see the affected versions and patch details below.
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
Exploitation and automatability from CISA’s SSVC triage for GHSA-xr87-hm5c-qpwp.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Description
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.2, after a server calls close(), the closing parser state can continue accepting message data from a client that ignores the Close frame without enforcing max_length. A client can exploit a half-open TCP connection to send an oversized message while the server waits for the peer's Close response, causing unbounded buffering and an unauthenticated remote server crash. This issue is fixed in version 0.9.2.
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Fix
Upgrade the affected component to the fixed release for GHSA-xr87-hm5c-qpwp, or apply your distribution's backported patch — distro builds are often patched at an older version number, so check your vendor's advisory rather than the upstream version alone.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is GHSA-xr87-hm5c-qpwp in your dependencies?
Find it across your dependency tree, including transitive dependencies.