Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1348509 - (CVE-2016-1000023) CVE-2016-1000023 nodejs-minimatch: Regular expression denial-of-service
CVE-2016-1000023 nodejs-minimatch: Regular expression denial-of-service
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20160620,repor...
: Security
Depends On: 1348512 1348511 1352697 1352702 1353805 1355781 1359188 1359189
Blocks: 1348515
  Show dependency treegraph
 
Reported: 2016-06-21 06:55 EDT by Andrej Nemec
Modified: 2016-09-15 15:51 EDT (History)
17 users (show)

See Also:
Fixed In Version: nodejs-minimatch 3.0.2
Doc Type: If docs needed, set a value
Doc Text:
A regular expression denial of service flaw was found in Minimatch. An attacker able to make an application using Minimatch to perform matching using a specially crafted glob pattern could cause the application to consume an excessive amount of CPU.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-09-15 15:51:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1582 normal SHIPPED_LIVE Moderate: nodejs010-nodejs-minimatch security update 2016-08-09 10:04:18 EDT
Red Hat Product Errata RHSA-2016:1583 normal SHIPPED_LIVE Moderate: rh-nodejs4-nodejs-minimatch security update 2016-08-09 10:02:23 EDT
Red Hat Product Errata RHSA-2016:1605 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Enterprise security update 2016-08-11 17:17:27 EDT

  None (edit)
Description Andrej Nemec 2016-06-21 06:55:20 EDT
Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript RegExp objects. The primary function, minimatch(path, pattern) is vulnerable to ReDoS in the pattern parameter. This is because of the regular expression on line 521 of minimatch.js: /((?:\\{2})*)(\\?)\|/g,. The problematic portion of the regex is ((?:\\{2})*) which matches against //.

External references:

https://nodesecurity.io/advisories/118
Comment 1 Andrej Nemec 2016-06-21 06:55:56 EDT
Created nodejs-minimatch tracking bugs for this issue:

Affects: fedora-all [bug 1348511]
Affects: epel-all [bug 1348512]
Comment 5 Tomas Hoger 2016-07-08 08:42:06 EDT
Upstream commit:

https://github.com/isaacs/minimatch/commit/6944abf9e0694bd22fd9dad293faa40c2bc8a955

Change of the regex does not seem to make much difference, the pattern length restriction is needed to block this issue.
Comment 10 errata-xmlrpc 2016-08-09 06:04:36 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2016:1583 https://rhn.redhat.com/errata/RHSA-2016-1583.html
Comment 11 errata-xmlrpc 2016-08-09 06:04:57 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7

Via RHSA-2016:1582 https://rhn.redhat.com/errata/RHSA-2016-1582.html
Comment 12 errata-xmlrpc 2016-08-11 13:18:18 EDT
This issue has been addressed in the following products:

  Red Hat OpenShift Enterprise 3.2
  Red Hat OpenShift Enterprise 3.1

Via RHSA-2016:1605 https://access.redhat.com/errata/RHSA-2016:1605

Note You need to log in before you can comment on or make changes to this bug.