CVE-2018-7158

Modified
Published: 17 May 2018, 14:00
Last modified:16 Sept 2024, 16:48

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
1.26% LOW
1% probability -0.51%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

17 May 2018, 14:00
Published
Vulnerability first disclosed
16 Sept 2024, 16:48
Last Modified
Vulnerability information updated

Description

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.

CVSS Metrics

  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • v2.0MEDIUMScore: 5AV:N/AC:L/Au:N/C:N/I:N/A:P

EPSS Trends

Current EPSS score: 1.26% Percentile: 80%

Techniques & Countermeasures

  • CWE-185Incorrect Regular Expression

    The product specifies a regular expression in a way that causes data to be improperly matched or compared.

Affected Systems

  • nodejsnode.js

    ≥ 4.0.0, ≤ 4.1.2 | ≥ 4.2.0, ≤ 4.9.1

  • the node.js projectnode.js

    ≥ 4.0, < 5.0

References (1)