CVE catalog

CVE-2018-7158

nodejs: CVE-2018-7158

[CVE catalog]

Severity
High · CVSS 7.5CVSS: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.

DistributionPackageReleaseVersionStatus
Debiannodejssid24.22.1+dfsg+~cs24.19.2-1fixed
Debiannodejsforky24.21.0+dfsg+~cs24.13.4-1fixed
Debiannodejstrixie20.19.2+dfsg-1+deb13u2fixed
Debiannodejstrixie-security20.19.2+dfsg-1+deb13u3fixed
Debiannodejsbookworm18.20.4+dfsg-1~deb12u2fixed
Debiannodejsbookworm-security18.20.4+dfsg-1~deb12u3fixed
Cpenode.jsNot reportedNot reportedunknown
Alpinenodejs3.108.11.0-r0fixed
Alpinenodejs3.118.11.0-r0fixed
Alpinenodejs3.128.11.0-r0fixed
Alpinenodejs3.138.11.0-r0fixed
Alpinenodejs3.148.11.0-r0fixed
Alpinenodejs3.158.11.0-r0fixed
Alpinenodejs3.168.11.0-r0fixed
Alpinenodejs3.178.11.0-r0fixed
Alpinenodejs3.188.11.0-r0fixed
Alpinenodejs3.198.11.0-r0fixed
Alpinenodejs3.208.11.0-r0fixed
Alpinenodejs3.218.11.0-r0fixed
Alpinenodejs3.228.11.0-r0fixed
Alpinenodejs3.238.11.0-r0fixed
Alpinenodejs3.248.11.0-r0fixed
Alpinenodejs3.88.11.0-r0fixed
Alpinenodejs3.98.11.0-r0fixed
Ubuntunodejspro0.10.25~dfsg2-2ubuntu1vulnerable
Ubuntunodejspro4.2.2~dfsg-1vulnerable
Ubuntunodejspro4.2.3~dfsg-1vulnerable
Ubuntunodejspro4.2.4~dfsg-1ubuntu1vulnerable
Ubuntunodejspro4.2.4~dfsg-2vulnerable
Ubuntunodejspro4.2.6~dfsg-1ubuntu1vulnerable
Ubuntunodejspro4.2.6~dfsg-1ubuntu4vulnerable
Ubuntunodejspro4.2.6~dfsg-1ubuntu4.1vulnerable
Ubuntunodejspro4.2.6~dfsg-1ubuntu4.2vulnerable
Ubuntunodejspro4.2.6~dfsg-1ubuntu4.2+esm1vulnerable
Ubuntunodejspro4.2.6~dfsg-1ubuntu4.2+esm2vulnerable
Ubuntunodejspro4.2.6~dfsg-1ubuntu4.2+esm3vulnerable
Susenodejs4linux enterprise module for web and scripting 124.9.1-15.11.1fixed
Susenodejs4enterprise storage 44.9.1-15.11.1fixed
Susenodejs6openstack cloud 76.14.1-11.12.1fixed
Susenodejs6linux enterprise module for web and scripting 126.14.1-11.12.1fixed
Susenodejs6enterprise storage 46.14.1-11.12.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannodejssourcesid6.0.0~dfsg-1unimportantNot reportedNot reported
Debiannodejssourceforky6.0.0~dfsg-1unimportantNot reportedNot reported
Debiannodejssourcetrixie6.0.0~dfsg-1unimportantNot reportedNot reported
Debiannodejssourcebookworm6.0.0~dfsg-1unimportantNot reportedNot reported
Alpinenodejsapk3.108.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.118.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.128.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.138.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.148.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.158.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.168.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.178.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.188.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.198.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.208.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.218.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.228.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.238.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.248.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.88.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Alpinenodejsapk3.98.11.0-r0Not reportedALPINE-CVE-2018-7158Not reported
Susenodejs4rpmlinux enterprise module for web and scripting 124.9.1-15.11.1Not reportedSUSE-SU-2018:0952-1Not reported
Susenodejs4rpmenterprise storage 44.9.1-15.11.1Not reportedSUSE-SU-2018:0952-1Not reported
Susenodejs6rpmopenstack cloud 76.14.1-11.12.1Not reportedSUSE-SU-2018:1183-1Not reported
Susenodejs6rpmlinux enterprise module for web and scripting 126.14.1-11.12.1Not reportedSUSE-SU-2018:1183-1Not reported
Susenodejs6rpmenterprise storage 46.14.1-11.12.1Not reportedSUSE-SU-2018:1183-1Not 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 · bookworm

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

  • [libnode-dev]Unknown

    Source package: [nodejs]

    Details (4)
    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

  • [nodejs]Unknown
    Details (4)
    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

  • [nodejs-doc]Unknown

    Source package: [nodejs]

    Details (4)
    • 18.20.4+dfsg-1~deb12u2 · all · bookworm

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · all · bookworm

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · all · bookworm-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

    • 18.20.4+dfsg-1~deb12u2 · all · bookworm-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · bookworm; dsa · nodejs · debian · 12

[Debian 13 (Trixie)]

  • [libnode115]Unknown

    Source package: [nodejs]

    Details (5)
    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

  • [libnode-dev]Unknown

    Source package: [nodejs]

    Details (5)
    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

  • [nodejs]Unknown
    Details (5)
    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · arm64 · trixie-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

  • [nodejs-doc]Unknown

    Source package: [nodejs]

    Details (5)
    • 20.19.2+dfsg-1+deb13u2 · all · trixie

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · all · trixie

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · all · trixie-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u2 · all · trixie-security · Historical version

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

    • 20.19.2+dfsg-1+deb13u3 · all · trixie-security

      Fixed · Fixed: 6.0.0~dfsg-1

      dsa · nodejs · debian · 13

Observed:

References