nday
CVE-2018-7158

The 'path' module in the Node.js 4.x release line contains a potential regular expression denial…Title composed by nday; the CVE record has none.

The Node.js Project / Node.js

Technical analysis appeared 57 days before the CVE record was published. nday has no fix record for it yet; that does not mean no patch exists. None of the four PoC sources lists it. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1) from NVD's analysts
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1) from NVD's analysts
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1) from NVD's analysts
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1) from NVD's analysts
Node.js
CPE names NVD's analysts give as vulnerable: a:nodejs:node.js
open-source library / framework
CPE names NVD's analysts give as vulnerable: a:nodejs:node.jsthe product type of Node.js in nday's product registry
stage
ANA
disclosed
cvss
no score yet

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2018-05-17T14:00Z
PATpatch
no record yet
ANAanalysis
2018-03-21T23:49Z
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Event log

+ANAtechnical analysis

Node.js security advisory: “March 2018 Security Releases”.

src advisory s13:1717 · nday , bulk import · raw
{
  "id": 555404,
  "type": "analysis_published",
  "source": "advisory",
  "url": "https://nodejs.org/en/blog/vulnerability/march-2018-security-releases",
  "occurred_at": "2018-03-21T23:49:59Z",
  "observed_at": "2026-11-26T15:01:19.978612Z",
  "is_backfill": true,
  "dedupe_key": "s13:1717",
  "detail": {
    "title": "March 2018 Security Releases",
    "vendor": "Node.js",
    "product": "nodejs",
    "precision": "time",
    "source_id": 13
  }
}
+DISdisclosed

CVE record published by nodejs.

src cvelist · nday , bulk import · raw
{
  "id": 183211,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2018-7158",
  "occurred_at": "2018-05-17T14:00:00Z",
  "observed_at": "2026-11-13T05:36:44.115721Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "ssvc": {
      "timestamp": "2026-10-08T21:12:07.334801Z",
      "automatable": "yes",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2018-05-17T14:00:00.000Z",
    "assigner_short_name": "nodejs"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.