CVE-2020-7793 Regular Expression Denial of Service (ReDoS)
Attackers can cause denial of service in applications using ua-parser-js by submitting crafted user agent strings that trigger expensive regex operations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-7793?
CVE-2020-7793 is a high-severity denial of service vulnerability in ua-parser-js, published on 11 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package ua-parser-js before 0.7.23 are vulnerable to Regular Expression Denial of Service (ReDoS) in multiple regexes (see linked commit for more info).
Which versions are affected by CVE-2020-7793?
2 open source packages ship an affected version, including ua-parser-js. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
ua-parser-js npm | All versions | 0.7.23 |
ua-parser-js npm | All versions | 0.7.23 |
Products include Siemens Sinec Ins, Ua-Parser-Js Project Ua-Parser-Js.
How do I fix CVE-2020-7793?
Upgrade ua-parser-js to 0.7.23 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-2020-7793 being exploited?
There is no known exploitation of CVE-2020-7793 in the wild and no public exploit code.
Other vulnerabilities in ua-parser-js
Sources
Also known as DEBIAN-CVE-2020-7793, GHSA-394c-5j6w-4xmx, UBUNTU-CVE-2020-7793.