cbcvebase.
CVE-2018-7158
published 2018-05-17

CVE-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
VendorProductVersion rangeFixed in
debiannodejs< nodejs 6.0.0~dfsg-1 (bookworm)nodejs 6.0.0~dfsg-1 (bookworm)
nodejsnode.js4.0.0 – 4.1.2
nodejsnode.js4.2.0 – 4.9.1
nodejsnodejs>= 0 < 6.0.0~dfsg-16.0.0~dfsg-1
nodejsnodejs>= 0 < 6.0.0~dfsg-16.0.0~dfsg-1
nodejsnodejs>= 0 < 6.0.0~dfsg-16.0.0~dfsg-1
nodejsnodejs>= 0 < 6.0.0~dfsg-16.0.0~dfsg-1
the_node.js_projectnode.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.