
CVE catalog
CVE-2018-7158
nodejs: CVE-2018-7158
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.41% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | nodejs | sid | 24.22.1+dfsg+~cs24.19.2-1 | fixed |
| Debian | nodejs | forky | 24.21.0+dfsg+~cs24.13.4-1 | fixed |
| Debian | nodejs | trixie | 20.19.2+dfsg-1+deb13u2 | fixed |
| Debian | nodejs | trixie-security | 20.19.2+dfsg-1+deb13u3 | fixed |
| Debian | nodejs | bookworm | 18.20.4+dfsg-1~deb12u2 | fixed |
| Debian | nodejs | bookworm-security | 18.20.4+dfsg-1~deb12u3 | fixed |
| Cpe | node.js | Not reported | Not reported | unknown |
| Alpine | nodejs | 3.10 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.11 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.12 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.13 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.14 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.15 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.16 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.17 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.18 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.19 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.20 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.21 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.22 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.23 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.24 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.8 | 8.11.0-r0 | fixed |
| Alpine | nodejs | 3.9 | 8.11.0-r0 | fixed |
| Ubuntu | nodejs | pro | 0.10.25~dfsg2-2ubuntu1 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.2~dfsg-1 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.3~dfsg-1 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.4~dfsg-1ubuntu1 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.4~dfsg-2 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.6~dfsg-1ubuntu1 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.6~dfsg-1ubuntu4 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.6~dfsg-1ubuntu4.1 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.6~dfsg-1ubuntu4.2 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.6~dfsg-1ubuntu4.2+esm1 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.6~dfsg-1ubuntu4.2+esm2 | vulnerable |
| Ubuntu | nodejs | pro | 4.2.6~dfsg-1ubuntu4.2+esm3 | vulnerable |
| Suse | nodejs4 | linux enterprise module for web and scripting 12 | 4.9.1-15.11.1 | fixed |
| Suse | nodejs4 | enterprise storage 4 | 4.9.1-15.11.1 | fixed |
| Suse | nodejs6 | openstack cloud 7 | 6.14.1-11.12.1 | fixed |
| Suse | nodejs6 | linux enterprise module for web and scripting 12 | 6.14.1-11.12.1 | fixed |
| Suse | nodejs6 | enterprise storage 4 | 6.14.1-11.12.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | nodejs | source | sid | 6.0.0~dfsg-1 | unimportant | Not reported | Not reported |
| Debian | nodejs | source | forky | 6.0.0~dfsg-1 | unimportant | Not reported | Not reported |
| Debian | nodejs | source | trixie | 6.0.0~dfsg-1 | unimportant | Not reported | Not reported |
| Debian | nodejs | source | bookworm | 6.0.0~dfsg-1 | unimportant | Not reported | Not reported |
| Alpine | nodejs | apk | 3.10 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.11 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.12 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.13 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.14 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.15 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.16 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.17 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.18 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.19 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.20 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.21 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.22 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.23 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.24 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.8 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Alpine | nodejs | apk | 3.9 | 8.11.0-r0 | Not reported | ALPINE-CVE-2018-7158 | Not reported |
| Suse | nodejs4 | rpm | linux enterprise module for web and scripting 12 | 4.9.1-15.11.1 | Not reported | SUSE-SU-2018:0952-1 | Not reported |
| Suse | nodejs4 | rpm | enterprise storage 4 | 4.9.1-15.11.1 | Not reported | SUSE-SU-2018:0952-1 | Not reported |
| Suse | nodejs6 | rpm | openstack cloud 7 | 6.14.1-11.12.1 | Not reported | SUSE-SU-2018:1183-1 | Not reported |
| Suse | nodejs6 | rpm | linux enterprise module for web and scripting 12 | 6.14.1-11.12.1 | Not reported | SUSE-SU-2018:1183-1 | Not reported |
| Suse | nodejs6 | rpm | enterprise storage 4 | 6.14.1-11.12.1 | Not reported | SUSE-SU-2018:1183-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libnode108]Unknown
Source package: [nodejs]
Details (4)
18.20.4+dfsg-1~deb12u2· amd64 · bookwormFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· arm64 · bookwormFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· amd64 · bookworm-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· arm64 · bookworm-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
- [libnode-dev]Unknown
Source package: [nodejs]
Details (4)
18.20.4+dfsg-1~deb12u2· amd64 · bookwormFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· arm64 · bookwormFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· amd64 · bookworm-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· arm64 · bookworm-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
- [nodejs]Unknown
Details (4)
18.20.4+dfsg-1~deb12u2· amd64 · bookwormFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· arm64 · bookwormFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· amd64 · bookworm-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· arm64 · bookworm-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
- [nodejs-doc]Unknown
Source package: [nodejs]
Details (4)
18.20.4+dfsg-1~deb12u2· all · bookwormFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· all · bookwormFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· all · bookworm-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
18.20.4+dfsg-1~deb12u2· all · bookworm-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12
[Debian 13 (Trixie)]
- [libnode115]Unknown
Source package: [nodejs]
Details (5)
20.19.2+dfsg-1+deb13u2· amd64 · trixieFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· arm64 · trixieFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· arm64 · trixie-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u3· amd64 · trixie-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
- [libnode-dev]Unknown
Source package: [nodejs]
Details (5)
20.19.2+dfsg-1+deb13u2· amd64 · trixieFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· arm64 · trixieFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· arm64 · trixie-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u3· amd64 · trixie-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
- [nodejs]Unknown
Details (5)
20.19.2+dfsg-1+deb13u2· amd64 · trixieFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· arm64 · trixieFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· amd64 · trixie-security · Historical versionFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· arm64 · trixie-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u3· amd64 · trixie-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
- [nodejs-doc]Unknown
Source package: [nodejs]
Details (5)
20.19.2+dfsg-1+deb13u2· all · trixieFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· all · trixieFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· all · trixie-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u2· all · trixie-security · Historical versionFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
20.19.2+dfsg-1+deb13u3· all · trixie-securityFixed · Fixed:
6.0.0~dfsg-1dsa · nodejs · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2018_0952-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2018-7158]
- [https://osv.dev/vulnerability/ALPINE-CVE-2018-7158]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-7158]
- [https://osv.dev/vulnerability/SUSE-SU-2018:0952-1]
- [https://osv.dev/vulnerability/SUSE-SU-2018:1183-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-7158]
- [https://security-tracker.debian.org/tracker/CVE-2018-7158]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-7158.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]