CVE-2024-22018 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 fa...
LowCVSS 2.9
EPSS 0.46%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/nodejs(Debian:13) | < 20.15.1+dfsg-1 | 20.15.1+dfsg-1 |
| debian/nodejs(Debian:14) | < 20.15.1+dfsg-1 | 20.15.1+dfsg-1 |
| ubuntu/nodejs(Ubuntu:22.04) | All versions | No fix listed |
| nodejs node | >= 4.0 | No fix listed |
| nodejs node | >= 5.0 | No fix listed |
| nodejs node | >= 6.0 | No fix listed |
| nodejs node | >= 7.0 | No fix listed |
| nodejs node | >= 8.0 | No fix listed |
| nodejs node | >= 9.0 | No fix listed |
| nodejs node | >= 10.0 | No fix listed |
| nodejs node | >= 11.0 | No fix listed |
| nodejs node | >= 12.0 | No fix listed |
| nodejs node | >= 13.0 | No fix listed |
| nodejs node | >= 14.0 | No fix listed |
| nodejs node | >= 15.0 | No fix listed |
| nodejs node | >= 16.0 | No fix listed |
| nodejs node | >= 17.0 | No fix listed |
| nodejs node | >= 19.0 | No fix listed |
| nodejs node | >= 20.0, < 20.15.1 | 20.15.1 |
| nodejs node | >= 21.0 | No fix listed |
| nodejs node | >= 22.0, < 22.4.1 | 22.4.1 |
| alpine/nodejs(Alpine:v3.19) | < 20.15.1-r0 | 20.15.1-r0 |
| alpine/nodejs(Alpine:v3.20) | < 20.15.1-r0 | 20.15.1-r0 |
| alpine/nodejs(Alpine:v3.21) | < 20.15.1-r0 | 20.15.1-r0 |
| alpine/nodejs(Alpine:v3.22) | < 20.15.1-r0 | 20.15.1-r0 |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/nodejs(Alpine:v3.23) | < 20.15.1-r0 | 20.15.1-r0 |
| alpine/nodejs(Alpine:v3.24) | < 20.15.1-r0 | 20.15.1-r0 |
| ubuntu/nodejs(Ubuntu:24.04) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2024-22018 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- hackerone.com
- www.openwall.com
- www.openwall.com
- security.netapp.com
- security.alpinelinux.org vendor-advisory