CVE-2017-16086
published 2018-06-07CVE-2017-16086: 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…
PriorityP349high7.5CVSS 3.0
AVNACLPRNUINSUCNINAH
EXPLOIT
EPSS
9.24%
94.7th percentile
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.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| hackerone | ua-parser_node_module | — | — |
| hackerone | ua-parser_node_module | 0 – 0.3.5 | — |
Detection & IOCsextracted from sources · hover to see the quote
uaMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36↗
- →Monitor for abnormally long or crafted User-Agent headers sent to server-side applications using ua-parser or ua-parser-js, which may trigger catastrophic backtracking in the regex engine (ReDoS). ↗
- →Flag server-side invocations of the 'getOS' or 'getResult' functions in ua-parser-js when processing untrusted User-Agent input, as these are the vulnerable code paths. ↗
- ·The vulnerability was patched in ua-parser-js version 0.7.16; ensure deployed instances are at or above this version to be protected. ↗
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
ReDoS via long UserAgent header in ua-parser
osv·2018-07-24
CVE-2017-16086 [HIGH] ReDoS via long UserAgent header in ua-parser
ReDoS via long UserAgent header in ua-parser
Affected versions of `ua-parser` are vulnerable to regular expression denial of service when given a specially crafted `User-Agent` header.
## Recommendation
No patch is currently available for this vulnerability.
The best mitigation is currently to avoid using this package, using a different, functionally equivalent package such as [useragent](https://www.npmjs.com/package/useragent).
GHSA
ReDoS via long UserAgent header in ua-parser
ghsa·2018-07-24
CVE-2017-16086 [HIGH] CWE-400 ReDoS via long UserAgent header in ua-parser
ReDoS via long UserAgent header in ua-parser
Affected versions of `ua-parser` are vulnerable to regular expression denial of service when given a specially crafted `User-Agent` header.
## Recommendation
No patch is currently available for this vulnerability.
The best mitigation is currently to avoid using this package, using a different, functionally equivalent package such as [useragent](https://www.npmjs.com/package/useragent).
No detection rules found.
No writeups or analysis indexed.
2018-06-07
Published