CVE-2021-3810 Inefficient Regular Expression Complexity in cdr/code-server
Attackers can cause denial of service in code-server by triggering inefficient regular expression complexity.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-3810?
CVE-2021-3810 is a high-severity denial of service vulnerability in cdr/code-server, published on 17 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
code-server is vulnerable to Inefficient Regular Expression Complexity
Weakness: CWE-1333
Which versions are affected by CVE-2021-3810?
2 open source packages ship an affected version, including code-server. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
code-server npm | All versions | 3.12.0 |
code-server npm | All versions | 3.12.0 |
Products include Coder Code-Server.
How do I fix CVE-2021-3810?
Upgrade code-server to 3.12.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-3810 being exploited?
There is no known exploitation of CVE-2021-3810 in the wild and no public exploit code.
Other vulnerabilities in cdr/code-server
Sources
Also known as GHSA-49x3-8228-3w3m.