Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1547272 - (CVE-2018-1109) CVE-2018-1109 nodejs-braces: Regular Expression Denial of Service (ReDoS) in lib/parsers.js
CVE-2018-1109 nodejs-braces: Regular Expression Denial of Service (ReDoS) in ...
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20180219,reported=2...
: Security
Depends On: 1596764 1566711
Blocks: 1547276
  Show dependency treegraph
 
Reported: 2018-02-20 17:09 EST by Laura Pardo
Modified: 2018-06-29 16:48 EDT (History)
25 users (show)

See Also:
Fixed In Version: braces 2.3.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-06-29 16:48:27 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)

  None (edit)
Description Laura Pardo 2018-02-20 17:09:55 EST
A vulnerability was found in Braces versions prior to 2.3.1. Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks. It used a regular expression (^\{(,+(?:(\{,+\})*),*|,*(?:(\{,+\})*),+)\}) in order to detects empty braces. This can cause an impact of about 10 seconds matching time for data 50K characters long.

Upstream Patch:

https://github.com/micromatch/braces/commit/abdafb0cae1e0c00f184abbadc692f4eaa98f451

External References:

https://snyk.io/vuln/npm:braces:20180219
Comment 1 Jason Shepherd 2018-02-22 22:44:00 EST
The 'braces' library is included in RHMAP, fh-ngui by the 'watchify' library. It doesn't accept user input to the string being matched by the vulnerable regular expression. Marking RHMAP as not affected.
Comment 5 Jason Shepherd 2018-06-13 17:28:14 EDT
NodeJS is shipped in Openshift Enterprise 3.9 as ImageStreams. Those ImageStreams are the RH Software Collection images. Setting Openshift Enterprise 3 as not affected.
Comment 7 Tomas Hoger 2018-06-29 12:31:05 EDT
The problematic regular expression was added as an optimization in version 2.2.0 via the following commit:

https://github.com/micromatch/braces/commit/dcc1acab4de9a43e86ab4be4acde209ff1dca113

Therefore, this issue is not applicable to older braces versions.
Comment 8 Tomas Hoger 2018-06-29 12:32:43 EDT
The nodejs-braces was added to Fedora 28, using affected upstream version 2.2.2.  Rawhide / F29 already has fixed upstream version 2.3.2.
Comment 9 Tomas Hoger 2018-06-29 12:33:09 EDT
Created nodejs-braces tracking bugs for this issue:

Affects: fedora-28 [bug 1596764]

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