Vulnerability · Published Jul 10, 2024 · Assigned by hackerone

CVE-2024-22018

Low 2.9

In plain English

A low-severity security flaw in Node from NodeJS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)2.9Low
Exploit odds (30 days)0.5%top 60.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8nodejs1:20.16.0-1.module_el8.10.0+3882+e12e42dbALSA-2024:5814
AlmaLinux:9nodejs1:20.16.0-1.module_el9.4.0+107+dbd477e4ALSA-2024:5815
AlmaLinux:8nodejs-devel1:20.16.0-1.module_el8.10.0+3882+e12e42dbALSA-2024:5814
AlmaLinux:9nodejs-devel1:20.16.0-1.module_el9.4.0+107+dbd477e4ALSA-2024:5815
AlmaLinux:8nodejs-docs1:20.16.0-1.module_el8.10.0+3882+e12e42dbALSA-2024:5814
AlmaLinux:9nodejs-docs1:20.16.0-1.module_el9.4.0+107+dbd477e4ALSA-2024:5815
AlmaLinux:8nodejs-full-i18n1:20.16.0-1.module_el8.10.0+3882+e12e42dbALSA-2024:5814
AlmaLinux:9nodejs-full-i18n1:20.16.0-1.module_el9.4.0+107+dbd477e4ALSA-2024:5815
AlmaLinux:8nodejs-nodemon3.0.1-1.module_el8.9.0+3731+490e3ce5ALSA-2024:5814
AlmaLinux:9nodejs-nodemon3.0.1-1.module_el9.3.0+47+c33bc288ALSA-2024:5815
AlmaLinux:8nodejs-packaging2021.06-4.module_el8.9.0+3775+d8460d35ALSA-2024:5814
AlmaLinux:9nodejs-packaging2021.06-4.module_el9.3.0+88+29afeaa2ALSA-2024:5815
AlmaLinux:8nodejs-packaging-bundler2021.06-4.module_el8.9.0+3775+d8460d35ALSA-2024:5814
AlmaLinux:9nodejs-packaging-bundler2021.06-4.module_el9.3.0+88+29afeaa2ALSA-2024:5815
AlmaLinux:8npm1:10.8.1-1.20.16.0.1.module_el8.10.0+3882+e12e42dbALSA-2024:5814
AlmaLinux:9npm1:10.8.1-1.20.16.0.1.module_el9.4.0+107+dbd477e4ALSA-2024:5815
Alpine:v3.20nodejs20.15.1-r0ALPINE-CVE-2024-22018
Alpine:v3.21nodejs20.15.1-r0ALPINE-CVE-2024-22018
Alpine:v3.22nodejs20.15.1-r0ALPINE-CVE-2024-22018
Alpine:v3.23nodejs20.15.1-r0ALPINE-CVE-2024-22018
Alpine:v3.24nodejs20.15.1-r0ALPINE-CVE-2024-22018
Debian:13nodejs20.15.1+dfsg-1DEBIAN-CVE-2024-22018
Debian:14nodejs20.15.1+dfsg-1DEBIAN-CVE-2024-22018
Rocky Linux:8nodejs1:20.16.0-1.module+el8.10.0+1856+4cdb8df5RLSA-2024:5814
Rocky Linux:8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1666+930e28e8RLSA-2024:5814
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.5.0+31770+0da7192dRLSA-2024:5815
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32322+a8b1fd01RLSA-2024:5815
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32045+2e5d342dRLSA-2024:5815
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32143+ae966e5bRLSA-2024:5815
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32144+1d29a396RLSA-2024:5815
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32185+bd121a25RLSA-2024:5815
Rocky Linux:8nodejs-packaging0:2021.06-4.module+el8.10.0+1667+4a788d89RLSA-2024:5814
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32185+bd121a25RLSA-2024:5815
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32144+1d29a396RLSA-2024:5815
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32143+ae966e5bRLSA-2024:5815
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32048+5323bb50RLSA-2024:5815
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32045+2e5d342dRLSA-2024:5815
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.5.0+31770+0da7192dRLSA-2024:5815
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32322+a8b1fd01RLSA-2024:5815
Ubuntu:24.04:LTSnodejsno fix listedUBUNTU-CVE-2024-22018

Affected products (as reported)

VendorProductVersions
NodeJS Node 4.0 – before 4.*5.0 – before 5.*6.0 – before 6.*7.0 – before 7.*8.0 – before 8.*9.0 – before 9.*10.0 – before 10.*11.0 – before 11.*

References