CVE Catalog

CVE-2024-22018

LowCVSS 2.9
Published: Updated: Translated: NVD NIST

Summary

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, allowing malicious actors to retrieve stats from files 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.

Risk Assessment

An attacker may obtain metadata of files (such as size, permissions, or timestamps) they should not have access to, potentially revealing information about the file system structure. This impacts confidentiality and may facilitate further reconnaissance attacks.

Recommendation

Update Node.js to a version containing the fix for this issue. If possible, avoid relying on the experimental permission model in production environments until it is stabilized.

Other vulnerabilities in Node.js

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS