Skip to content
OpenAdvisories
Low · 3.3 CVE-2024-36137 EUVD-2024-36333GHSA-q793-mj5v-wh68

A vulnerability has been identified in Node.js, affecting users of the experimental permission model when the --allow-fs-write flag is used…

Published Sep 7, 2024 · Updated Apr 30, 2025 · Assigned by hackerone

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.

Affected products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.*, 17.0 – < 17.*, 19.0 – < 19.*, 20.0 – < 20.15.1, 21.0 – < 21.*, 22.0 – < 22.4.1 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 20.15.1+dfsg-1 —
Debian 13 nodejs 20.15.1+dfsg-1 —
ReleasePackageFixed inAdvisory
RHEL 9 nodejs +3 1:20.16.0-1.module+el9.4.0+22197+9e60f127 RHSA-2024:5815
RHEL 9 nodejs-nodemon 3.0.1-1.module+el9.3.0.z+20478+84a9f781 RHSA-2024:5815
RHEL 9 nodejs-packaging +1 2021.06-4.module+el9.3.0+19518+63aad52d RHSA-2024:5815
RHEL 9 npm 1:10.8.1-1.20.16.0.1.module+el9.4.0+22197+9e60f127 RHSA-2024:5815
RHEL 8 nodejs +3 1:20.16.0-1.module+el8.10.0+22203+a88c8310 RHSA-2024:5814
RHEL 8 nodejs-nodemon 3.0.1-1.module+el8.9.0+20473+c4e3d824 RHSA-2024:5814
RHEL 8 nodejs-packaging +1 2021.06-4.module+el8.9.0+19519+e25b965a RHSA-2024:5814
RHEL 8 npm 1:10.8.1-1.20.16.0.1.module+el8.10.0+22203+a88c8310 RHSA-2024:5814

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 nodejs +3 1:20.16.0-1.module_el9.4.0+107+dbd477e4 ALSA-2024:5815
AlmaLinux 9 nodejs-nodemon 3.0.1-1.module_el9.3.0+47+c33bc288 ALSA-2024:5815
AlmaLinux 9 nodejs-packaging +1 2021.06-4.module_el9.3.0+88+29afeaa2 ALSA-2024:5815
AlmaLinux 9 npm 1:10.8.1-1.20.16.0.1.module_el9.4.0+107+dbd477e4 ALSA-2024:5815
AlmaLinux 8 nodejs +3 1:20.16.0-1.module_el8.10.0+3882+e12e42db ALSA-2024:5814
AlmaLinux 8 nodejs-nodemon 3.0.1-1.module_el8.9.0+3731+490e3ce5 ALSA-2024:5814
AlmaLinux 8 nodejs-packaging +1 2021.06-4.module_el8.9.0+3775+d8460d35 ALSA-2024:5814
AlmaLinux 8 npm 1:10.8.1-1.20.16.0.1.module_el8.10.0+3882+e12e42db ALSA-2024:5814

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 nodejs-nodemon 3.0.1-1.module+el9.5.0+31770+0da7192d RLSA-2024:5815
Rocky Linux 9 nodejs-packaging 2021.06-4.module+el9.5.0+31770+0da7192d RLSA-2024:5815
Rocky Linux 8 nodejs 1:20.16.0-1.module+el8.10.0+1856+4cdb8df5 RLSA-2024:5814
Rocky Linux 8 nodejs-nodemon 3.0.1-1.module+el8.10.0+1666+930e28e8 RLSA-2024:5814
Rocky Linux 8 nodejs-packaging 2021.06-4.module+el8.10.0+1667+4a788d89 RLSA-2024:5814
ReleasePackageFixed inAdvisory
SLES 15 SP6 nodejs20 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1
SLES 15 SP5 nodejs20 20.15.1-150500.11.12.2 SUSE-SU-2024:2543-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs20 20.15.1-1.1 openSUSE-SU-2024:14214-1
openSUSE Tumbleweed nodejs22 22.10.0-1.1 openSUSE-SU-2024:14435-1
openSUSE Tumbleweed nodejs24 24.11.1-2.1 openSUSE-SU-2025:15802-1
openSUSE Tumbleweed nodejs26 26.3.1-1.1 openSUSE-SU-2026:11110-1
openSUSE Leap 15.6 nodejs20 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1
openSUSE Leap 15.5 nodejs20 20.15.1-150500.11.12.2 SUSE-SU-2024:2543-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 20.15.1-r0 —
Alpine v3.23 nodejs 20.15.1-r0 —
Alpine v3.22 nodejs 20.15.1-r0 —
Alpine v3.21 nodejs 20.15.1-r0 —
Alpine v3.20 nodejs 20.15.1-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 20.15.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs20 +4 1:20.18.0-1.amzn2023.0.2 ALAS2023-2024-768
Amazon Linux 2023 nodejs20-npm 1:10.8.2-1.20.18.0.1.amzn2023.0.2 ALAS2023-2024-768
Amazon Linux 2023 v8-11.3-devel 3:11.3.244.8-1.20.18.0.1.amzn2023.0.2 ALAS2023-2024-768

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nodejs 24.14.1-3 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 nodejs +3 1:20.16.0-1.module+el9.4.0+90390+ec2aa9c0 ELSA-2024-5815
Oracle Linux 9 nodejs-nodemon 3.0.1-1.module+el9.3.0+90066+12d4a8d7 ELSA-2024-5815
Oracle Linux 9 nodejs-packaging +1 2021.06-4.module+el9.3.0+90066+12d4a8d7 ELSA-2024-5815
Oracle Linux 9 npm 1:10.8.1-1.20.16.0.1.module+el9.4.0+90390+ec2aa9c0 ELSA-2024-5815
Oracle Linux 8 nodejs +3 1:20.16.0-1.module+el8.10.0+90391+162fb07b ELSA-2024-5814
Oracle Linux 8 nodejs-nodemon 3.0.1-1.module+el8.9.0+90082+b6a613a6 ELSA-2024-5814
Oracle Linux 8 nodejs-packaging +1 2021.06-4.module+el8.9.0+90082+b6a613a6 ELSA-2024-5814
Oracle Linux 8 npm 1:10.8.1-1.20.16.0.1.module+el8.10.0+90391+162fb07b ELSA-2024-5814

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nodejs-21 No fix yet —

Advisories 19

References