CVE-2024-22018

Name
CVE-2024-22018
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.
NVD Severity
low
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
https://hackerone.com/reports/2145862
http://www.openwall.com/lists/oss-security/2024/07/11/6
http://www.openwall.com/lists/oss-security/2024/07/19/3

Match rules

CPE URI Source package Min version Max version
node.js >= 0 <= 20.11.0
node.js >= 0 <= 21.6.1

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
nodejs 3.20-main 20.15.1-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
nodejs 3.19-main 20.15.1-r0 Jakub Jirutka <jakub@jirutka.cz> fixed