CVE-2018-20164 uap-core Regular Expression Denial of Service issue
Remote attackers can cause server overload via ReDoS by sending crafted User-Agent headers to applications using the vulnerable UAP-Core library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-20164?
CVE-2018-20164 is a medium-severity denial of service vulnerability in n/a, published on 13 Feb 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in regex.yaml (aka regexes.yaml) in UA-Parser UAP-Core before 0.6.0. A Regular Expression Denial of Service (ReDoS) issue allows remote attackers to overload a server by setting the User-Agent header in an HTTP(S) request to a value containing a long digit string. (The UAP-Core project contains the vulnerability, propagating to all implementations.)
Weakness: CWE-185
Which versions are affected by CVE-2018-20164?
2 open source packages ship an affected version, including uap-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
uap-core npm | All versions | 0.6.0 |
uap-core npm | All versions | 0.6.0 |
Products include Uaparser User Agent Parser-Core.
How do I fix CVE-2018-20164?
Upgrade uap-core to 0.6.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-2018-20164 being exploited?
There is no known exploitation of CVE-2018-20164 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2018-20164, GHSA-fx7m-j728-mjw3.