Armis Logo< Back

CVE-2024-37890:

CVE-2024-37890: Denial of service in the ws library (WebSocket for Node.js) where handling a request with a large number of HTTP headers can trigger a NULL pointer dereference and crash the ws server, affecting availability. The issue has been fixed in ws version 8.17.1 and backported to earlier release lines.


Score
Info
A numerical rating that indicates how dangerous this vulnerability is.

7.5High
  • Published Date:Jun 17, 2024
  • CISA KEV Date:*No Data*
  • Industries Affected:20

Threat Predictions

  • EPSS Score:0.8
  • EPSS Percentile:73%

Exploitability

  • Score:3.9
  • Attack Vector:NETWORK
  • Attack Complexity:LOW
  • Privileges Required:NONE
  • User Interaction:NONE
  • Scope:UNCHANGED

Impact

  • Score:3.6
  • Confidentiality Impact:NONE
  • Integrity Impact:NONE
  • Availability Impact:HIGH

Description Preview

CVE-2024-37890: Denial of service in the ws library (WebSocket for Node.js) where handling a request with a large number of HTTP headers can trigger a NULL pointer dereference and crash the ws server, affecting availability. The issue has been fixed in ws version 8.17.1 and backported to earlier release lines.

Overview

ws is vulnerable to a denial-of-service condition when a request presents a large number of HTTP headers that surpass the server’s header limit, potentially causing a NULL pointer dereference and crashing the server. The flaw affects multiple older ws releases and has been resolved in ws 8.17.1, with backports to 7.5.10, 6.2.3, and 5.2.4. Mitigations exist in older versions by limiting header size or removing the header limit entirely (server.maxHeadersCount = 0). Upgrading to the fixed versions is the recommended remediation.

Remediation

  • Upgrade ws to the fixed version (at minimum ws 8.17.1). If using a managed dependency chain, ensure the upgrade propagates to all affected release lines (7.5.10, 6.2.3, 5.2.4 backports as applicable).
  • If upgrading is not immediately possible, apply mitigations in vulnerable environments:
  • Limit the maximum HTTP header size by configuring the server or ws accordingly (e.g., use --max-http-header-size=size or the ws maxHeaderSize option).
  • Consider setting server.maxHeadersCount to 0 to disable the header-count limit, recognizing the potential trade-offs and monitoring needs.
  • Review and test changes in staging before deploying to production, and monitor for any related issues after applying mitigations or upgrades.
  • Implement additional DoS protections (rate limiting, request validation, and proper resource monitoring) to reduce the blast radius of similar attacks.

References

Industries Affected

Below is a list of industries most commonly impacted or potentially at risk based on intelligence.

Medium
Manufacturing icon
Manufacturing
Low
Mining icon
Mining
Utilities icon
Utilities
Information icon
Information
Construction icon
Construction
Retail Trade icon
Retail Trade
Wholesale Trade icon
Wholesale Trade
Educational Services icon
Educational Services
Finance and Insurance icon
Finance and Insurance
Public Administration icon
Public Administration
Real Estate Rental and Leasing icon
Real Estate Rental and Leasing
Transportation and Warehousing icon
Transportation and Warehousing
Accommodation and Food Services icon
Accommodation and Food Services
Health Care and Social Assistance icon
Health Care and Social Assistance
Arts, Entertainment, and Recreation icon
Arts, Entertainment, and Recreation
Management of Companies and Enterprises icon
Management of Companies and Enterprises
Agriculture, Forestry, Fishing and Hunting icon
Agriculture, Forestry, Fishing and Hunting
Other Services (except Public Administration) icon
Other Services (except Public Administration)
Professional, Scientific, and Technical Services icon
Professional, Scientific, and Technical Services
Administrative and Support and Waste Management and Remediation Services icon
Administrative and Support and Waste Management and Remediation Services

Focus on What Matters

See everything.Identify true risk.Proactively mitigate threats.Book a Demo

Let's talk!