CVE catalog

CVE-2024-22018

nodejs: CVE-2024-22018

[CVE catalog]

Severity
Low · CVSS 2.9CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.46% · Oct 25, 2026

A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-read flag is used. This flaw arises from an inadequate permission model that fails to restrict file stats through the fs.lstat API. As a result, malicious actors can retrieve stats from files that they do not have explicit read access to. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

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~deb12u2not affected
Debiannodejsbookworm-security18.20.4+dfsg-1~deb12u3not affected
Alpinenodejs3.1920.15.1-r0fixed
Alpinenodejs3.2020.15.1-r0fixed
Alpinenodejs3.2120.15.1-r0fixed
Alpinenodejs3.2220.15.1-r0fixed
Alpinenodejs3.2320.15.1-r0fixed
Alpinenodejs3.2420.15.1-r0fixed
Ubuntunodejspro12.22.5~dfsg-5ubuntu1vulnerable
Ubuntunodejspro12.22.7~dfsg-2ubuntu1vulnerable
Ubuntunodejspro12.22.7~dfsg-2ubuntu3vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu2vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu3vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu3.1vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu3.2vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu3.3vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu3.4vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu3.5vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu3.6vulnerable
Ubuntunodejspro12.22.9~dfsg-1ubuntu3.6+esm2vulnerable
Ubuntunodejs24.0418.13.0+dfsg1-1ubuntu2vulnerable
Ubuntunodejs24.0418.19.1+dfsg-2ubuntu4vulnerable
Ubuntunodejs24.0418.19.1+dfsg-6ubuntu1vulnerable
Ubuntunodejs24.0418.19.1+dfsg-6ubuntu2vulnerable
Ubuntunodejs24.0418.19.1+dfsg-6ubuntu5vulnerable
Susenodejs20linux enterprise module for web and scripting 15 sp620.15.1-150600.3.3.2fixed
Opensusenodejs20leap 15.620.15.1-150600.3.3.2fixed
Susenodejs20linux enterprise module for web and scripting 15 sp520.15.1-150500.11.12.2fixed
Opensusenodejs20leap 15.520.15.1-150500.11.12.2fixed
Opensusenodejs20tumbleweed20.15.1-1.1fixed
Opensusenodejs22tumbleweed22.10.0-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannodejssourcesid20.15.1+dfsg-1not yet assignedNot reportedNot reported
Debiannodejssourceforky20.15.1+dfsg-1not yet assignedNot reportedNot reported
Debiannodejssourcetrixie20.15.1+dfsg-1not yet assignedNot reportedNot reported
DebiannodejssourcebookwormNot affectedunimportantNot reportedNot reported
Alpinenodejsapk3.1920.15.1-r0Not reportedALPINE-CVE-2024-22018Not reported
Alpinenodejsapk3.2020.15.1-r0Not reportedALPINE-CVE-2024-22018Not reported
Alpinenodejsapk3.2120.15.1-r0Not reportedALPINE-CVE-2024-22018Not reported
Alpinenodejsapk3.2220.15.1-r0Not reportedALPINE-CVE-2024-22018Not reported
Alpinenodejsapk3.2320.15.1-r0Not reportedALPINE-CVE-2024-22018Not reported
Alpinenodejsapk3.2420.15.1-r0Not reportedALPINE-CVE-2024-22018Not reported
Susenodejs20rpmlinux enterprise module for web and scripting 15 sp620.15.1-150600.3.3.2Not reportedSUSE-SU-2024:2574-1Not reported
Opensusenodejs20rpmleap 15.620.15.1-150600.3.3.2Not reportedSUSE-SU-2024:2574-1Not reported
Susenodejs20rpmlinux enterprise module for web and scripting 15 sp520.15.1-150500.11.12.2Not reportedSUSE-SU-2024:2543-1Not reported
Opensusenodejs20rpmleap 15.520.15.1-150500.11.12.2Not reportedSUSE-SU-2024:2543-1Not reported
Opensusenodejs20rpmtumbleweed20.15.1-1.1Not reportedOPENSUSE-SU-2024:14214-1Not reported
Opensusenodejs22rpmtumbleweed22.10.0-1.1Not reportedOPENSUSE-SU-2024:14435-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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

  • [libnode-dev]Unknown

    Source package: [nodejs]

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

  • [nodejs-doc]Unknown

    Source package: [nodejs]

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

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

      Not affected

      dsa · nodejs · debian · bookworm

[Debian 13 (Trixie)]

  • [libnode115]Unknown

    Source package: [nodejs]

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

  • [libnode-dev]Unknown

    Source package: [nodejs]

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

  • [nodejs-doc]Unknown

    Source package: [nodejs]

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

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

      Fixed · Fixed: 20.15.1+dfsg-1

      dsa · nodejs · debian · 13

Observed:

References