CVEfocus › CVE database › CVE-2024-37890

CVE-2024-37890Denial of service when handling a request with many HTTP headers in ws

CVSS 7.5 HighEPSS 1.6% (higher than 76% of CVEs)Published 2024-06-17Updated 2024-08-02Assigner: GitHub_M

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.

CWE-476

What to do

Fixed builds are available from Debian, Red Hat, npm: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

39Fixed
9Fix pending
3Under investigation
15Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-wsFix pendingUBUNTU-CVE-2024-37890
Ubuntu 26.04node-wsUnder investigationUBUNTU-CVE-2024-37890
Ubuntu 25.10node-wsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-37890
Ubuntu 24.04node-wsUnder investigationUBUNTU-CVE-2024-37890
Ubuntu 22.04node-wsUnder investigationUBUNTU-CVE-2024-37890
Ubuntu 20.04node-wsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-37890
Ubuntu 18.04node-wsFix pendingUBUNTU-CVE-2024-37890
Ubuntu 16.04node-wsFix pendingUBUNTU-CVE-2024-37890
Debian 14node-wsFixed8.18.0+~cs13.7.11-1DEBIAN-CVE-2024-37890
Debian 13node-wsFixed8.18.0+~cs13.7.11-1DEBIAN-CVE-2024-37890
Debian 12node-wsFix pendingDEBIAN-CVE-2024-37890
Red Hat Enterprise Linux 10aspnetcore-runtime-8.0Fixed0:8.0.13-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10aspnetcore-runtime-dbg-8.0Fixed0:8.0.13-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10aspnetcore-targeting-pack-8.0Fixed0:8.0.13-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-apphost-pack-8.0Fixed0:8.0.13-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-hostfxr-8.0Fixed0:8.0.13-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-runtime-8.0Fixed0:8.0.13-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-runtime-dbg-8.0Fixed0:8.0.13-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-sdk-8.0Fixed0:8.0.113-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-sdk-8.0-source-built-artifactsFixed0:8.0.113-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-sdk-dbg-8.0Fixed0:8.0.113-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-targeting-pack-8.0Fixed0:8.0.13-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet-templates-8.0Fixed0:8.0.113-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 10dotnet8.0Fixed0:8.0.113-2.el10_0RHBA-2025:4932
Red Hat Enterprise Linux 9aspnetcore-runtime-6.0Fixed0:6.0.35-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9aspnetcore-runtime-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-runtime-8.0Fixed0:8.0.10-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9aspnetcore-runtime-dbg-8.0Fixed0:8.0.10-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-6.0Fixed0:6.0.35-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-8.0Fixed0:8.0.10-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-apphost-pack-6.0Fixed0:6.0.35-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9dotnet-apphost-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-apphost-pack-8.0Fixed0:8.0.10-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-hostWill not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-hostfxr-6.0Fixed0:6.0.35-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9dotnet-hostfxr-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-hostfxr-8.0Fixed0:8.0.10-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-runtime-6.0Fixed0:6.0.35-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9dotnet-runtime-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-runtime-8.0Fixed0:8.0.10-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-runtime-dbg-8.0Fixed0:8.0.10-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-sdk-6.0Fixed0:6.0.135-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9dotnet-sdk-6.0-source-built-artifactsFixed0:6.0.135-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9dotnet-sdk-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-7.0-source-built-artifactsWill not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-8.0Fixed0:8.0.110-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-sdk-8.0-source-built-artifactsFixed0:8.0.110-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-sdk-dbg-8.0Fixed0:8.0.110-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-targeting-pack-6.0Fixed0:6.0.35-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9dotnet-targeting-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-targeting-pack-8.0Fixed0:8.0.10-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet-templates-6.0Fixed0:6.0.135-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9dotnet-templates-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-templates-8.0Fixed0:8.0.110-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9dotnet6.0Fixed0:6.0.135-2.el9_5RHBA-2024:9550
Red Hat Enterprise Linux 9dotnet7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet8.0Fixed0:8.0.110-3.el9_5RHBA-2024:9549
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9librados-develFix pending
Fix deferred
Red Hat Enterprise Linux 9librados2Fix pending
Fix deferred
Red Hat Enterprise Linux 9libradospp-develFix pending
Fix deferred
Red Hat Enterprise Linux 9librbd-develFix pending
Fix deferred
Red Hat Enterprise Linux 9librbd1Fix pending
Fix deferred
Red Hat Enterprise Linux 9netstandard-targeting-pack-2.1Will not fix
Out of support scope
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 7dotnet6.0Will not fix
Out of support scope
npm librarywsFixed7.5.10GHSA-3h5v-q93c-6h6q

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.