Improper authorization control for web services In nodejs
Description
An incomplete fix for CVE-2024-36137 leaves FileHandle.chmod() and FileHandle.chown() in the promises API without the required permission checks, while their callback-based equivalents (fs.fchmod(), fs.fchown()) were correctly patched.
As a result, code running under --permission with restricted --allow-fs-write can still use promise-based FileHandle methods to modify file permissions and ownership on already-open file descriptors, bypassing the intended write restrictions.
This vulnerability affects 20.x, 22.x, 24.x, and 25.x processes using the Permission Model where --allow-fs-write is intentionally restricted.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
alpine v3.21 | 22.22.2-r0 | ||
debian 13 | 20.19.2+dfsg-1+deb13u2 | ||
debian 14 | 22.22.2+dfsg+~cs22.19.15-1 | ||
alpine v3.22 | 22.22.2-r0 | ||
alpine v3.23 | 24.14.1-r0 | ||
rpm rhel8 | - | - | |
rpm rhel9 | - | - | |
rpm rhel10 | - | - | |
rpm rhel10 | 1:24.14.1-2.el10_1 | ||
alpine v3.24 | 24.14.1-r0 |
1-10 of 11
10
Aliases
References