First published: Mon Jul 22 2024(Updated: )
A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-write flag is used. Node.js Permission Model do not operate on file descriptors, however, operations such as fs.fchown or fs.fchmod can use a "read-only" file descriptor to change the owner and permissions of a file. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 22.
Affected Software | Affected Version | How to fix |
---|---|---|
Node.js | >=20.0.0<=20.9999.9999>=22.0.0<=22.9999.9999 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-2299281 is categorized as a medium impact vulnerability affecting file operations.
To fix REDHAT-BUG-2299281, users should avoid using the --allow-fs-write flag until a patch or update is provided.
Node.js versions 20.0.0 to 20.9999.9999 and 22.0.0 to 22.9999.9999 are affected by REDHAT-BUG-2299281.
REDHAT-BUG-2299281 impacts file operations like fs.fchown or fs.fchmod when using a read-only file descriptor.
Currently, the most effective workaround for REDHAT-BUG-2299281 is to refrain from using the experimental permission model with the --allow-fs-write flag.