Skip to content

CVE-2020-7663 Regular Expression Denial of Service in websocket-extensions (RubyGem)

HighCVSS 7.5 EPSS 4.6% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
UbuntuDebian

Description

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.

Affected products

ProductAffected versionsFixed in
rubygems websocket-extensions(RubyGems) < 0.1.5 0.1.5
rubygems websocket-extensions(RubyGems) = 0.1.0 No fix listed
rubygems websocket-extensions(RubyGems) = 0.1.1 No fix listed
rubygems websocket-extensions(RubyGems) = 0.1.2 No fix listed
rubygems websocket-extensions(RubyGems) = 0.1.3 No fix listed
rubygems websocket-extensions(RubyGems) = 0.1.4 No fix listed
debian/ruby-websocket-extensions(Debian:12) < 0.1.5-1 0.1.5-1
debian/ruby-websocket-extensions(Debian:13) < 0.1.5-1 0.1.5-1
debian/ruby-websocket-extensions(Debian:14) < 0.1.5-1 0.1.5-1
websocket-extensions project websocket-extensions < 0.1.5 0.1.5
debian linux = 9.0 No fix listed
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 18.04 No fix listed
Canonical Ubuntu Linux = 20.04 No fix listed
ubuntu/ruby-websocket-extensions(Ubuntu:16.04) < 0.1.2-1+deb9u1build0.16.04.1 0.1.2-1+deb9u1build0.16.04.1
ubuntu/ruby-websocket-extensions(Ubuntu:16.04) = 0.1.2-1 No fix listed
ubuntu/ruby-websocket-extensions(Ubuntu:18.04) < 0.1.2-1+deb9u1build0.18.04.1 0.1.2-1+deb9u1build0.18.04.1
ubuntu/ruby-websocket-extensions(Ubuntu:18.04) = 0.1.2-1 No fix listed
ubuntu/ruby-websocket-extensions(Ubuntu:20.04) < 0.1.2-1+deb9u1build0.20.04.1 0.1.2-1+deb9u1build0.20.04.1
ubuntu/ruby-websocket-extensions(Ubuntu:20.04) = 0.1.2-1 No fix listed

References