CVE-2017-16086 ReDoS via long UserAgent header in ua-parser

High 7.5 Published Updated

Attackers can cause denial of service in applications using ua-parser by sending specially crafted User-Agent headers that trigger excessive CPU usage.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2017-16086?

CVE-2017-16086 is a high-severity denial of service vulnerability in HackerOne ua-parser node module, published on 7 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

ua-parser is a port of Browserscope's user agent parser. ua-parser is vulnerable to a ReDoS (Regular Expression Denial of Service) attack when given a specially crafted UserAgent header.

Weakness: CWE-400

Which versions are affected by CVE-2017-16086?

2 open source packages ship an affected version, including ua-parser. It affects 1 product.

PackageAffectedFixed in
ua-parser npmAll versions to 0.3.5None
ua-parser npmAll versions to 0.3.5None

Products include Ua-Parser Project Ua-Parser.

How do I fix CVE-2017-16086?

No fix has been published for CVE-2017-16086 yet. Limit exposure of the affected software until one is available.

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-2017-16086 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-16086 exists.

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-pmg9-p9r2-6q87.

Is CVE-2017-16086 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free