CVE-2020-7663
HIGH 7.5CVSS 3.1Regular Expression Denial of Service in websocket-extensions (RubyGem)
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.
- Published
- 2 Jun 2020
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-g6wq-qcwm-j5g2SNYK-RUBY-WEBSOCKETEXTENSIONS-570830
- Sources
- NVDJSONOSV GHSA-g6wq-qcwm-j5g2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | websocket-extensions_project | websocket-extensionscpe:2.3:a:websocket-extensions_project:websocket-extensions:*:*:*:*:*:ruby:*:* |
< 0.1.5 | 0.1.5 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* |
= 20.04 | |
| OSV | RubyGems | websocket-extensions | < 0.1.5 | 0.1.5 |
References
- https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions · Third Party Advisory, WEB
- https://github.com/faye/websocket-extensions-ruby/commit/aa156a439da681361ed6f53f1a8131892418838b · Patch, Third Party Advisory, WEB
- https://github.com/faye/websocket-extensions-ruby/security/advisories/GHSA-g6wq-qcwm-j5g2 · Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/08/msg00031.html · Mailing List, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-RUBY-WEBSOCKETEXTENSIONS-570830 · Exploit, Third Party Advisory, WEB
- https://usn.ubuntu.com/4502-1/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-7663 · ADVISORY
- https://github.com/faye/websocket-extensions-ruby · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/websocket-extensions/CVE-2020-7663.yml · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 2 Jun 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Jun 2020)