All reports
Low

nodejs: fs.fchown/fchmod bypasses permission model

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-36137

Probability of exploitation in the next 30 days: 0.40%

FIRST EPSS · 2026-11-18

Description

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.

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.