CVE-2024-22018
Publication date 10 July 2024
Last updated 3 June 2025
Ubuntu priority
Cvss 3 Severity Score
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.
Status
Package | Ubuntu Release | Status |
---|---|---|
nodejs | 25.04 plucky |
Not affected
|
24.04 LTS noble |
Vulnerable
|
|
22.04 LTS jammy |
Vulnerable
|
|
20.04 LTS focal |
Not affected
|
|
18.04 LTS bionic |
Not affected
|
|
16.04 LTS xenial |
Not affected
|
|
14.04 LTS trusty |
Not affected
|
Severity score breakdown
Parameter | Value |
---|---|
Base score |
|
Attack vector | Local |
Attack complexity | High |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | Low |
Integrity impact | None |
Availability impact | None |
Vector | CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
References
Other references
- https://www.cve.org/CVERecord?id=CVE-2024-22018
- https://nodejs.org/en/blog/vulnerability/july-2024-security-releases#fslstat-bypasses-permission-model-cve-2024-22018---low
- https://hackerone.com/reports/2145862
- https://github.com/nodejs/node/commit/b9289a6e29e54beeaa3f781bde1195e48df0da75
- https://github.com/nodejs/node/commit/4fe0f826a80365ce2512b8193ceaa9466c288aa5
- https://github.com/nodejs/node/commit/0881c1f01ac90006315cae5b9c38cfbf44d37e59