Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1561980 - (CVE-2018-7158) CVE-2018-7158 nodejs: path module regular expression denial of service
CVE-2018-7158 nodejs: path module regular expression denial of service
Status: CLOSED WONTFIX
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=20180308,repor...
: Security
Depends On: 1562034 1562026 1562027 1562028 1565268 1565604
Blocks: 1561984
  Show dependency treegraph
 
Reported: 2018-03-29 05:50 EDT by Adam Mariš
Modified: 2018-07-17 08:38 EDT (History)
22 users (show)

See Also:
Fixed In Version: nodejs 4.9.0, nodejs 6.0
Doc Type: If docs needed, set a value
Doc Text:
It was found that the 'path' module from Node.js was vulnerable to a Regular Expression Denial of Service (REDoS) flaw. An attacker able to provide a specially crafted file path to a Node.js script could force it to hang indefinitely.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-07-17 08:38:46 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 Adam Mariš 2018-03-29 05:50:42 EDT
A regular expression used for parsing POSIX paths could be used to cause a denial of service if an attacker were able to have a specially crafted path string passed through one of the impacted 'path' module functions.

References:

https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.9.0
Comment 1 Adam Mariš 2018-03-29 08:07:02 EDT
Created nodejs tracking bugs for this issue:

Affects: fedora-all [bug 1562027]
Affects: epel-all [bug 1562026]
Comment 5 Cedric Buissart 2018-04-06 10:30:19 EDT
Upstream commits for nodejs-4 implementation :
https://github.com/nodejs/node/commit/4196fcf23e
https://github.com/nodejs/node/commit/bf00665af6
Comment 9 Cedric Buissart 2018-04-10 08:12:40 EDT
Contrary to what upstream changelog suggests, it appears that this CVE affects only nodejs-4.x. Node.js 6 and above had the 'path' library rewritten to avoid inefficient regular expressions. 
In Node.js 4, the fix was to backport the newer path parsing method from Node.js 8.
Comment 10 Jason Shepherd 2018-06-13 17:15:36 EDT
NodeJS is only provided in Openshift Enterprise 3.9 via Red Hat Software Collections. Changing Openshift Enterprise to not affected.

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