CVE-2018-7158
published 2018-05-17CVE-2018-7158: The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced…
PriorityP339high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
3.38%
87.5th percentile
The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced in Node.js 6.x and later so this vulnerability only impacts all versions of Node.js 4.x. The regular expression, `splitPathRe`, used within the `'path'` module for the various path parsing functions, including `path.dirname()`, `path.extname()` and `path.parse()` was structured in such a way as to allow an attacker to craft a string, that when passed through one of these functions, could take a significant amount of time to evaluate, potentially leading to a full denial of service.
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | nodejs | < nodejs 6.0.0~dfsg-1 (bookworm) | nodejs 6.0.0~dfsg-1 (bookworm) |
| nodejs | node.js | 4.0.0 – 4.1.2 | — |
| nodejs | node.js | 4.2.0 – 4.9.1 | — |
| nodejs | nodejs | >= 0 < 6.0.0~dfsg-1 | 6.0.0~dfsg-1 |
| nodejs | nodejs | >= 0 < 6.0.0~dfsg-1 | 6.0.0~dfsg-1 |
| nodejs | nodejs | >= 0 < 6.0.0~dfsg-1 | 6.0.0~dfsg-1 |
| nodejs | nodejs | >= 0 < 6.0.0~dfsg-1 | 6.0.0~dfsg-1 |
| the_node.js_project | node.js | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-43w8-q5fx-vj5w: The `'path'` module in the Node
ghsa_unreviewed·2022-05-13
CVE-2018-7158 [HIGH] CWE-20 GHSA-43w8-q5fx-vj5w: The `'path'` module in the Node
The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced in Node.js 6.x and later so this vulnerability only impacts all versions of Node.js 4.x. The regular expression, `splitPathRe`, used within the `'path'` module for the various path parsing functions, including `path.dirname()`, `path.extname()` and `path.parse()` was structured in such a way as to allow an attacker to craft a string, that when passed through one of these functions, could take a significant amount of time to evaluate, potentially leading to a full denial of service.
OSV
CVE-2018-7158: The `'path'` module in the Node
osv·2018-05-17·CVSS 7.5
CVE-2018-7158 [HIGH] CVE-2018-7158: The `'path'` module in the Node
The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced in Node.js 6.x and later so this vulnerability only impacts all versions of Node.js 4.x. The regular expression, `splitPathRe`, used within the `'path'` module for the various path parsing functions, including `path.dirname()`, `path.extname()` and `path.parse()` was structured in such a way as to allow an attacker to craft a string, that when passed through one of these functions, could take a significant amount of time to evaluate, potentially leading to a full denial of service.
Red Hat
nodejs: path module regular expression denial of service
vendor_redhat·2018-03-08·CVSS 7.5
CVE-2018-7158 [HIGH] CWE-400 nodejs: path module regular expression denial of service
nodejs: path module regular expression denial of service
The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced in Node.js 6.x and later so this vulnerability only impacts all versions of Node.js 4.x. The regular expression, `splitPathRe`, used within the `'path'` module for the various path parsing functions, including `path.dirname()`, `path.extname()` and `path.parse()` was structured in such a way as to allow an attacker to craft a string, that when passed through one of these functions, could take a significant amount of time to evaluate, potentially leading to a full denial of service.
It was found that the 'path' module from Node.js was vulnerable to a Regular Expression Denial
Debian
CVE-2018-7158: nodejs - The `'path'` module in the Node.js 4.x release line contains a potential regular...
vendor_debian·2018·CVSS 7.5
CVE-2018-7158 [HIGH] CVE-2018-7158: nodejs - The `'path'` module in the Node.js 4.x release line contains a potential regular...
The `'path'` module in the Node.js 4.x release line contains a potential regular expression denial of service (ReDoS) vector. The code in question was replaced in Node.js 6.x and later so this vulnerability only impacts all versions of Node.js 4.x. The regular expression, `splitPathRe`, used within the `'path'` module for the various path parsing functions, including `path.dirname()`, `path.extname()` and `path.parse()` was structured in such a way as to allow an attacker to craft a string, that when passed through one of these functions, could take a significant amount of time to evaluate, potentially leading to a full denial of service.
Scope: local
bookworm: resolved (fixed in 6.0.0~dfsg-1)
bullseye: resolved (fixed in 6.0.0~dfsg-1)
forky: resolved (fixed in 6.0.0~dfsg-1)
sid: resolved
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-7158 nodejs: path module regular expression denial of service
bugzilla·2018-03-29·CVSS 7.5
CVE-2018-7158 [HIGH] CVE-2018-7158 nodejs: path module regular expression denial of service
CVE-2018-7158 nodejs: path module regular expression denial of service
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
Discussion:
Created nodejs tracking bugs for this issue:
Affects: fedora-all [bug 1562027]
Affects: epel-all [bug 1562026]
---
Upstream commits for nodejs-4 implementation :
https://github.com/nodejs/node/commit/4196fcf23e
https://github.com/nodejs/node/commit/bf00665af6
---
Contrary to what upstream changelog suggests, it appears that this CVE affects only nodejs-4.x. Node.js 6 and above had the 'path' li
Bugzilla
CVE-2018-7158 CVE-2018-7159 CVE-2018-7160 nodejs: various flaws [fedora-all]
bugzilla·2018-03-29·CVSS 7.5
CVE-2018-7158 [HIGH] CVE-2018-7158 CVE-2018-7159 CVE-2018-7160 nodejs: various flaws [fedora-all]
CVE-2018-7158 CVE-2018-7159 CVE-2018-7160 nodejs: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions
Bugzilla
CVE-2018-7158 CVE-2018-7159 CVE-2018-7160 nodejs: various flaws [epel-all]
bugzilla·2018-03-29·CVSS 7.5
CVE-2018-7158 [HIGH] CVE-2018-7158 CVE-2018-7159 CVE-2018-7160 nodejs: various flaws [epel-all]
CVE-2018-7158 CVE-2018-7159 CVE-2018-7160 nodejs: various flaws [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of F
2018-05-17
Published