CVE Vulnerabilities

CVE-2021-32640

Uncontrolled Resource Consumption

Published: May 25, 2021 | Modified: Jun 17, 2026
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.3 LOW
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

ws is an open source WebSocket client and server library for Node.js. A specially crafted value of the Sec-Websocket-Protocol header can be used to significantly slow down a ws server. The vulnerability has been fixed in ws@7.4.6 (https://github.com/websockets/ws/commit/00c425ec77993773d823f018f64a5c44e17023ff). In vulnerable versions of ws, the issue can be mitigated by reducing the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options.

Weakness

The product does not properly control the allocation and maintenance of a limited resource.

Affected Software

NameVendorStart VersionEnd Version
WsWs_project5.0.0 (including)6.2.2 (excluding)
WsWs_project7.0.0 (including)7.4.6 (excluding)
Red Hat Openshift Data Foundation 5.0RedHatodf5/cephcsi-rhel9:1795073870*
Red Hat Openshift Data Foundation 5.0RedHatodf5/cephcsi-rhel9-operator:1795073546*
Red Hat Openshift Data Foundation 5.0RedHatodf5/devicefinder-rhel9:1795073967*
Red Hat Openshift Data Foundation 5.0RedHatodf5/mcg-core-rhel9:1795074158*
Red Hat Openshift Data Foundation 5.0RedHatodf5/mcg-rhel9-operator:1795074167*
Red Hat Openshift Data Foundation 5.0RedHatodf5/ocs-client-console-rhel9:1795074655*
Red Hat Openshift Data Foundation 5.0RedHatodf5/ocs-client-rhel9-operator:1795074170*
Red Hat Openshift Data Foundation 5.0RedHatodf5/ocs-metrics-exporter-rhel9:1795074383*
Red Hat Openshift Data Foundation 5.0RedHatodf5/ocs-rhel9-operator:1795074368*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-blackbox-exporter-rhel9:1795074330*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-cli-rhel9:1795074438*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-cloudnative-pg-rhel9-operator:1795074371*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-console-rhel9:1795074803*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-cosi-sidecar-rhel9:1795074454*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-csi-addons-rhel9-operator:1795074485*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-csi-addons-sidecar-rhel9:1795074572*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-drbd-rhel9:1795074668*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-external-snapshot-metadata-sidecar-rhel9:1795074674*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-external-snapshotter-rhel9-operator:1795074723*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-external-snapshotter-sidecar-rhel9:1795074744*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-multicluster-console-rhel9:1795075063*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-multicluster-rhel9-operator:1795074810*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-must-gather-rhel9:1795074944*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odf-rhel9-operator:1795074987*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odr-rhel9-operator:1795074981*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odr-volsync-plugin-mover-rhel9:1795075376*
Red Hat Openshift Data Foundation 5.0RedHatodf5/odr-volsync-plugin-rhel9-operator:1795075367*
Red Hat Openshift Data Foundation 5.0RedHatodf5/rook-ceph-rhel9-operator:1795075598*
Node-wsUbuntubionic*
Node-wsUbuntuesm-apps/xenial*
Node-wsUbuntufocal*
Node-wsUbuntugroovy*
Node-wsUbuntuhirsute*
Node-wsUbuntuimpish*
Node-wsUbuntukinetic*
Node-wsUbuntuupstream*
Node-wsUbuntuxenial*

Potential Mitigations

  • Mitigation of resource exhaustion attacks requires that the target system either:

  • The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.

  • The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.

References