CVE-2017-18077 ReDoS in brace-expansion
An attacker can cause a denial of service in applications using the brace-expansion library by providing specially crafted input that triggers excessive regular expression processing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-18077?
CVE-2017-18077 is a high-severity denial of service vulnerability in n/a, published on 27 Jan 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
index.js in brace-expansion before 1.1.7 is vulnerable to Regular Expression Denial of Service (ReDoS) attacks, as demonstrated by an expand argument containing many comma characters.
Weakness: CWE-20
Which versions are affected by CVE-2017-18077?
2 open source packages ship an affected version, including brace-expansion. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
brace-expansion npm | All versions | 1.1.7 |
brace-expansion npm | All versions | 1.1.7 |
Products include Brace Expansion Project Brace Expansion.
How do I fix CVE-2017-18077?
Upgrade brace-expansion to 1.1.7 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-2017-18077 being exploited?
There is no known exploitation of CVE-2017-18077 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1792163293, DEBIAN-CVE-2017-18077, GHSA-832h-xg76-4gv6.