Skip to content
OpenAdvisories
Low · 2.9 CVE-2024-22018 EUVD-2024-19624GHSA-9xvm-xmw3-2hm2

A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-read flag is used.…

Published Jul 10, 2024 · Updated Apr 30, 2025 · Assigned by hackerone

Description

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.

Affected products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.*, 17.0 – < 17.*, 19.0 – < 19.*, 20.0 – < 20.15.1, 21.0 – < 21.*, 22.0 – < 22.4.1 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 20.15.1+dfsg-1 —
Debian 13 nodejs 20.15.1+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS nodejs No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS nodejs No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 nodejs +3 1:20.16.0-1.module+el9.4.0+22197+9e60f127 RHSA-2024:5815
RHEL 9 nodejs-nodemon 3.0.1-1.module+el9.3.0.z+20478+84a9f781 RHSA-2024:5815
RHEL 9 nodejs-packaging +1 2021.06-4.module+el9.3.0+19518+63aad52d RHSA-2024:5815
RHEL 9 npm 1:10.8.1-1.20.16.0.1.module+el9.4.0+22197+9e60f127 RHSA-2024:5815
RHEL 8 nodejs +3 1:20.16.0-1.module+el8.10.0+22203+a88c8310 RHSA-2024:5814
RHEL 8 nodejs-nodemon 3.0.1-1.module+el8.9.0+20473+c4e3d824 RHSA-2024:5814
RHEL 8 nodejs-packaging +1 2021.06-4.module+el8.9.0+19519+e25b965a RHSA-2024:5814
RHEL 8 npm 1:10.8.1-1.20.16.0.1.module+el8.10.0+22203+a88c8310 RHSA-2024:5814

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 nodejs +3 1:20.16.0-1.module_el9.4.0+107+dbd477e4 ALSA-2024:5815
AlmaLinux 9 nodejs-nodemon 3.0.1-1.module_el9.3.0+47+c33bc288 ALSA-2024:5815
AlmaLinux 9 nodejs-packaging +1 2021.06-4.module_el9.3.0+88+29afeaa2 ALSA-2024:5815
AlmaLinux 9 npm 1:10.8.1-1.20.16.0.1.module_el9.4.0+107+dbd477e4 ALSA-2024:5815
AlmaLinux 8 nodejs +3 1:20.16.0-1.module_el8.10.0+3882+e12e42db ALSA-2024:5814
AlmaLinux 8 nodejs-nodemon 3.0.1-1.module_el8.9.0+3731+490e3ce5 ALSA-2024:5814
AlmaLinux 8 nodejs-packaging +1 2021.06-4.module_el8.9.0+3775+d8460d35 ALSA-2024:5814
AlmaLinux 8 npm 1:10.8.1-1.20.16.0.1.module_el8.10.0+3882+e12e42db ALSA-2024:5814

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 nodejs-nodemon 3.0.1-1.module+el9.5.0+31770+0da7192d RLSA-2024:5815
Rocky Linux 9 nodejs-packaging 2021.06-4.module+el9.5.0+31770+0da7192d RLSA-2024:5815
Rocky Linux 8 nodejs 1:20.16.0-1.module+el8.10.0+1856+4cdb8df5 RLSA-2024:5814
Rocky Linux 8 nodejs-nodemon 3.0.1-1.module+el8.10.0+1666+930e28e8 RLSA-2024:5814
Rocky Linux 8 nodejs-packaging 2021.06-4.module+el8.10.0+1667+4a788d89 RLSA-2024:5814
ReleasePackageFixed inAdvisory
SLES 15 SP6 nodejs20 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1
SLES 15 SP5 nodejs20 20.15.1-150500.11.12.2 SUSE-SU-2024:2543-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs20 20.15.1-1.1 openSUSE-SU-2024:14214-1
openSUSE Tumbleweed nodejs22 22.10.0-1.1 openSUSE-SU-2024:14435-1
openSUSE Tumbleweed nodejs24 24.11.1-2.1 openSUSE-SU-2025:15802-1
openSUSE Tumbleweed nodejs26 26.3.1-1.1 openSUSE-SU-2026:11110-1
openSUSE Leap 15.6 nodejs20 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1
openSUSE Leap 15.5 nodejs20 20.15.1-150500.11.12.2 SUSE-SU-2024:2543-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 20.15.1-r0 —
Alpine v3.23 nodejs 20.15.1-r0 —
Alpine v3.22 nodejs 20.15.1-r0 —
Alpine v3.21 nodejs 20.15.1-r0 —
Alpine v3.20 nodejs 20.15.1-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 20.15.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs20 +4 1:20.18.0-1.amzn2023.0.2 ALAS2023-2024-768
Amazon Linux 2023 nodejs20-npm 1:10.8.2-1.20.18.0.1.amzn2023.0.2 ALAS2023-2024-768
Amazon Linux 2023 v8-11.3-devel 3:11.3.244.8-1.20.18.0.1.amzn2023.0.2 ALAS2023-2024-768

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nodejs 24.14.1-3 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 nodejs +3 1:20.16.0-1.module+el9.4.0+90390+ec2aa9c0 ELSA-2024-5815
Oracle Linux 9 nodejs-nodemon 3.0.1-1.module+el9.3.0+90066+12d4a8d7 ELSA-2024-5815
Oracle Linux 9 nodejs-packaging +1 2021.06-4.module+el9.3.0+90066+12d4a8d7 ELSA-2024-5815
Oracle Linux 9 npm 1:10.8.1-1.20.16.0.1.module+el9.4.0+90390+ec2aa9c0 ELSA-2024-5815
Oracle Linux 8 nodejs +3 1:20.16.0-1.module+el8.10.0+90391+162fb07b ELSA-2024-5814
Oracle Linux 8 nodejs-nodemon 3.0.1-1.module+el8.9.0+90082+b6a613a6 ELSA-2024-5814
Oracle Linux 8 nodejs-packaging +1 2021.06-4.module+el8.9.0+90082+b6a613a6 ELSA-2024-5814
Oracle Linux 8 npm 1:10.8.1-1.20.16.0.1.module+el8.10.0+90391+162fb07b ELSA-2024-5814

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nodejs-20 20.15.1-r0 —
Wolfi rolling nodejs-21 No fix yet —
Wolfi rolling nodejs-22 22.4.1-r0 —

Advisories 18

References