CVE-2024-37890 Denial of service when handling a request with many HTTP headers in ws
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
ws is an open source WebSocket client and server for Node.js. A request with a number of headers exceeding theserver.maxHeadersCount threshold could be used to crash a ws server. The vulnerability was fixed in ws@8.17.1 (e55e510) and backported to ws@7.5.10 (22c2876), ws@6.2.3 (eeb76d3), and ws@5.2.4 (4abd8f6). In vulnerable versions of ws, the issue can be mitigated in the following ways: 1. Reduce the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options so that no more headers than the server.maxHeadersCount limit can be sent. 2. Set server.maxHeadersCount to 0 so that no limit is applied.
Upgrade path
9 packages: 4 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-ws(Debian 12) | = 8.11.0+~cs13.7.3-1; = 8.11.0+~cs13.7.3-2; = 8.18.0+~cs13.7.11-1; = 8.18.0+~cs14.5.15-1 +7 more | No fix listed | No fix yet |
| ubuntu/node-ws(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-ws(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-ws(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-ws(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-ws(Debian 13) | < 8.18.0+~cs13.7.11-1 | 8.18.0+~cs13.7.11-1 | Fixed |
| debian/node-ws(Debian 14) | < 8.18.0+~cs13.7.11-1 | 8.18.0+~cs13.7.11-1 | Fixed |
| npm ws(npm) | >= 2.1.0, < 5.2.4; >= 6.0.0, < 6.2.3; >= 7.0.0, < 7.5.10; >= 8.0.0, < 8.17.1 | 5.2.4, 6.2.3, 7.5.10, 8.17.1 | Fixed |
| websockets ws | < 5.2.4; < 6.2.3; < 7.5.10; < 8.17.1 +8 more | 5.2.4, 6.2.3, 7.5.10, 8.17.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-ws(Debian:12) | All versions | No fix listed |
| debian/node-ws(Debian:12) | = 8.11.0+~cs13.7.3-1 | No fix listed |
| debian/node-ws(Debian:12) | = 8.11.0+~cs13.7.3-2 | No fix listed |
| debian/node-ws(Debian:12) | = 8.18.0+~cs13.7.11-1 | No fix listed |
| debian/node-ws(Debian:12) | = 8.18.0+~cs14.5.15-1 | No fix listed |
| debian/node-ws(Debian:12) | = 8.18.1+~cs14.18.2-1 | No fix listed |
| debian/node-ws(Debian:12) | = 8.19.0+~cs14.19.1-1 | No fix listed |
| debian/node-ws(Debian:12) | = 8.20.1+~cs14.19.1-1 | No fix listed |
| debian/node-ws(Debian:12) | = 8.21.0+~cs14.19.1-1 | No fix listed |
| debian/node-ws(Debian:12) | = 8.21.1+~cs14.19.1-1 | No fix listed |
| debian/node-ws(Debian:12) | = 8.21.3+~cs14.19.1-1 | No fix listed |
| debian/node-ws(Debian:13) | < 8.18.0+~cs13.7.11-1 | 8.18.0+~cs13.7.11-1 |
| debian/node-ws(Debian:14) | < 8.18.0+~cs13.7.11-1 | 8.18.0+~cs13.7.11-1 |
| npm ws(npm) | >= 2.1.0, < 5.2.4 | 5.2.4 |
| npm ws(npm) | >= 6.0.0, < 6.2.3 | 6.2.3 |
| npm ws(npm) | >= 7.0.0, < 7.5.10 | 7.5.10 |
| npm ws(npm) | >= 8.0.0, < 8.17.1 | 8.17.1 |
| ubuntu/node-ws(Ubuntu:22.04) | All versions | No fix listed |
| websockets ws | = >= 2.1.0, < 5.2.4 | No fix listed |
| websockets ws | = >= 6.0.0, < 6.2.3 | No fix listed |
| websockets ws | = >= 7.0.0, < 7.5.10 | No fix listed |
| websockets ws | = >= 8.0.0, < 8.17.1 | No fix listed |
| websockets ws | = 2.1.0 | No fix listed |
| websockets ws | < 5.2.4 | 5.2.4 |
| websockets ws | = 6.0.0 | No fix listed |
Show 8 more
| Product | Affected versions | Fixed in |
|---|---|---|
| websockets ws | < 6.2.3 | 6.2.3 |
| websockets ws | = 7.0.0 | No fix listed |
| websockets ws | < 7.5.10 | 7.5.10 |
| websockets ws | = 8.0.0 | No fix listed |
| websockets ws | < 8.17.1 | 8.17.1 |
| ubuntu/node-ws(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-ws(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-ws(Ubuntu:26.10) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2024-37890 vendor-advisory
- https://github.com/websockets/ws/security/advisories/GHSA-3h5v-q93c-6h6q vendor-advisory
- https://github.com/websockets/ws/issues/2230
- https://github.com/websockets/ws/pull/2231 patch
- https://github.com/websockets/ws/commit/22c28763234aa75a7e1b76f5c01c181260d7917f patch
- https://github.com/websockets/ws/commit/4abd8f6de4b0b65ef80b3ff081989479ed93377e patch
- https://github.com/websockets/ws/commit/e55e5106f10fcbaac37cfa89759e4cc0d073a52c patch
- https://github.com/websockets/ws/commit/eeb76d313e2a00dd5247ca3597bba7877d064a63 patch
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- https://nodejs.org/api/http.html#servermaxheaderscount
- bugs.debian.org issue-tracking
- github.com product