CVE-2020-7662
published 2020-06-02CVE-2020-7662: websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing…
PriorityP337high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
3.01%
86.1th percentile
websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. This could be abused by an attacker to conduct Regex Denial Of Service (ReDoS) on a single-threaded server by providing a malicious payload with the Sec-WebSocket-Extensions header.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| websocket-extensions_project | websocket-extensions | < 0.1.4 | 0.1.4 |
| websocket-extensions_project | websocket-extensions | >= 0 < 0.1.4 | 0.1.4 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Regular Expression Denial of Service in websocket-extensions (NPM package)
osv·2020-06-05
CVE-2020-7662 [HIGH] Regular Expression Denial of Service in websocket-extensions (NPM package)
Regular Expression Denial of Service in websocket-extensions (NPM package)
### Impact
The ReDoS flaw allows an attacker to exhaust the server's capacity to process
incoming requests by sending a WebSocket handshake request containing a header
of the following form:
Sec-WebSocket-Extensions: a; b="\c\c\c\c\c\c\c\c\c\c ...
That is, a header containing an unclosed string parameter value whose content is
a repeating two-byte sequence of a backslash and some other character. The
parser takes exponential time to reject this header as invalid, and this will
block the processing of any other work on the same thread. Thus if you are
running a single-threaded server, such a request can render your service
completely unavailable.
### Patches
Users should upgrade to version 0.1.4.
### Workaroun
GHSA
Regular Expression Denial of Service in websocket-extensions (NPM package)
ghsa·2020-06-05
CVE-2020-7662 [HIGH] CWE-400 Regular Expression Denial of Service in websocket-extensions (NPM package)
Regular Expression Denial of Service in websocket-extensions (NPM package)
### Impact
The ReDoS flaw allows an attacker to exhaust the server's capacity to process
incoming requests by sending a WebSocket handshake request containing a header
of the following form:
Sec-WebSocket-Extensions: a; b="\c\c\c\c\c\c\c\c\c\c ...
That is, a header containing an unclosed string parameter value whose content is
a repeating two-byte sequence of a backslash and some other character. The
parser takes exponential time to reject this header as invalid, and this will
block the processing of any other work on the same thread. Thus if you are
running a single-threaded server, such a request can render your service
completely unavailable.
### Patches
Users should upgrade to version 0.1.4.
### Workaroun
Red Hat
npmjs-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
vendor_redhat·2020-06-02·CVSS 7.5
CVE-2020-7662 [HIGH] CWE-20 npmjs-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
npmjs-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
websocket-extensions npm module prior to 0.1.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. This could be abused by an attacker to conduct Regex Denial Of Service (ReDoS) on a single-threaded server by providing a malicious payload with the Sec-WebSocket-Extensions header.
Statement: In both OpenShift Container Platform (OCP) and OpenShift ServiceMesh (OSSM), the grafana and prometheus containers are behind OpenShift OAuth restricting access to the vulnerable websocket-extension to authenticated use
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2020-7662 npmjs-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
bugzilla·2020-06-10·CVSS 7.5
CVE-2020-7662 [HIGH] CVE-2020-7662 npmjs-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
CVE-2020-7662 npmjs-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
websocket-extensions npm module prior to 1.0.4 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. This could be abused by an attacker to conduct Regex Denial Of Service (ReDoS) on a single-threaded server by providing a malicious payload with the Sec-WebSocket-Extensions header.
Reference:
https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv
Upstream commit:
https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237
Bugzilla
CVE-2020-7663 rubygem-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
bugzilla·2020-06-10·CVSS 7.5
CVE-2020-7663 [HIGH] CVE-2020-7663 rubygem-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
CVE-2020-7663 rubygem-websocket-extensions: ReDoS vulnerability in Sec-WebSocket-Extensions parser
websocket-extensions ruby module prior to 0.1.5 allows Denial of Service (DoS) via Regex Backtracking. The extension parser may take quadratic time when parsing a header containing an unclosed string parameter value whose content is a repeating two-byte sequence of a backslash and some other character. This could be abused by an attacker to conduct Regex Denial Of Service (ReDoS) on a single-threaded server by providing a malicious payload with the Sec-WebSocket-Extensions header.
Reference:
https://github.com/faye/websocket-extensions-ruby/security/advisories/GHSA-g6wq-qcwm-j5g2
Upstream commit:
https://github.com/faye/websocket-extensions-ruby/commit/aa156a439da681361ed6f53f1a81318924188
https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensionshttps://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qvhttps://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensionshttps://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qvhttps://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623
2020-06-02
Published