Incorrect Regular Expression in Websocket-extensions - CVE-2020-7662
Published: January 20, 2025
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to 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. A remote attacker can pass specially crafted data to the application and perform regular expression denial of service (ReDos) attack.
Affected software
IBM Cloud Pak System
servicemesh-grafana (Red Hat package)
How to mitigate CVE-2020-7662
IBM Cloud Pak System - update to 2.3.3.5
servicemesh-grafana (Red Hat package) - update to 6.2.2-38.el8
External References
- https://blog.jcoglan.com/2020/06/02/redos-vulnerability-in-websocket-extensions
- https://github.com/faye/websocket-extensions-node/commit/29496f6838bfadfe5a2f85dff33ed0ba33873237
- https://github.com/faye/websocket-extensions-node/security/advisories/GHSA-g78m-2chm-r7qv
- https://snyk.io/vuln/SNYK-JS-WEBSOCKETEXTENSIONS-570623