Red Hat VEX
RHVEX-CVE-2024-36137
nodejs: fs.fchown/fchmod bypasses permission model
Details
A flaw was found in Node.js, affecting users of the experimental permission model when the --allow-fs-write flag is used. The Node.js Permission Model does 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | nodejs20 | All versions, no fix (fix deferred) |