---
title: CVE-2024-22018
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-22018
---

# CVE-2024-22018

Publication date 10 July 2024

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**2.9 · Low**

[Score breakdown](https://ubuntu.com/security/CVE-2024-22018#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| nodejs | 26.04 LTS resolute | Not affected |
| 25.10 questing | Not affected |
| 25.04 plucky | Not affected |
| 24.10 oracular | Not affected |
| 24.04 LTS noble | Vulnerable |
| 23.10 mantic | Ignored end of life, was needs-triage |
| 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 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

2.9 · Low

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Local |
  | Attack complexity | High |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | Low |
  | Integrity impact | None |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 2.9 · Low |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-22018)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-22018)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-22018)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-22018)

### 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>
