First published: Wed Jul 10 2024(Updated: )
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 Software | Affected Version | How to fix |
---|---|---|
Node.js | >=20.0.0<=21.0.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-2296990 is categorized as a medium risk due to the potential for information disclosure.
To fix REDHAT-BUG-2296990, users should avoid using the --allow-fs-read flag until a patched version of Node.js is available.
REDHAT-BUG-2296990 affects Node.js versions from 20.0.0 to 21.0.0 inclusive.
The impact of REDHAT-BUG-2296990 allows unauthorized access to file statistics via the fs.lstat API.
Yes, the recommended workaround for REDHAT-BUG-2296990 is to disable the experimental permission model.