Permissions, Privileges, and Access Controls in Node.js - CVE-2024-36137

 

Permissions, Privileges, and Access Controls in Node.js - CVE-2024-36137

Published: July 9, 2024


Vulnerability identifier: #VU93881
CSH Severity: Low
CVSS v4: 2.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-36137
CWE-ID: CWE-264
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to escalate privileges within the application.

The vulnerability exists due to application does not properly impose security restrictions in the experimental permission model when the --allow-fs-write flag is used. A remote user can change file ownership and permissions via fs.fchown and fs.fchmod.


Affected software

Node.js
Gentoo Linux
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Anolis OS
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Web and Scripting Module
openSUSE Leap
openEuler
IBM Business Automation Workflow
EasyApache
Unified OSS Console Assurance Monitoring (UOCAM)
IBM Cloud Transformation Advisor
IBM Cloud Pak for Business Automation
Planning Analytics Local
nodejs-nodemon
npm
nodejs-npm
v8-devel
v8-12.4-devel
nodejs20-docs
nodejs20-debugsource
nodejs20-devel
npm20
nodejs20-debuginfo
corepack20
nodejs20
nodejs-devel
nodejs-docs
nodejs-full-i18n
nodejs
nodejs-libs
nodejs-debugsource
nodejs-debuginfo
net-libs/nodejs
npm22
nodejs22-debugsource
nodejs22
corepack22
nodejs22-devel
nodejs22-debuginfo
nodejs22-docs
nodejs-packaging-bundler
nodejs-packaging
watsonx Orchestrate with watsonx Assistant Cartridge - Assistant Builder Component
watsonx Assistant Cartridge
IBM Cognos Controller

How to mitigate CVE-2024-36137

Install updates from vendor's website.

Node.js - addressed in versions 20.15.1, 22.4.1
EasyApache - update to 4 2024-7-10
Planning Analytics Local - addressed in versions 2.0.0.99, 2.1.6
nodejs-nodemon - update to 3.0.1-1
Unified OSS Console Assurance Monitoring (UOCAM) - update to 3.1.9
IBM Cloud Transformation Advisor - update to 3.10.1
watsonx Orchestrate with watsonx Assistant Cartridge - Assistant Builder Component - update to 5.1.1
watsonx Assistant Cartridge - update to 5.1.1
npm - update to 10.8.1-1.20.16.0.1
npm - addressed in versions 10.8.2-1.20.18.2.2, 10.8.2-1.20.18.2.7
nodejs-npm - update to 10.9.4-1.22.22.0.5
IBM Cognos Controller - addressed in versions 11.0.1.4, 11.1.0.2
v8-devel - addressed in versions 11.3.244.8-1.20.18.2.2, 11.3.244.8-1.20.18.2.7
v8-12.4-devel - update to 12.4.254.21-1.22.22.0.5
nodejs20-docs - addressed in versions 20.15.1-150500.11.12.2, 20.15.1-150600.3.3.2, 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20-debugsource - addressed in versions 20.15.1-150500.11.12.2, 20.15.1-150600.3.3.2, 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20-devel - addressed in versions 20.15.1-150500.11.12.2, 20.15.1-150600.3.3.2, 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
npm20 - addressed in versions 20.15.1-150500.11.12.2, 20.15.1-150600.3.3.2, 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20-debuginfo - addressed in versions 20.15.1-150500.11.12.2, 20.15.1-150600.3.3.2, 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
corepack20 - addressed in versions 20.15.1-150500.11.12.2, 20.15.1-150600.3.3.2, 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20 - addressed in versions 20.15.1-150500.11.12.2, 20.15.1-150600.3.3.2, 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs-devel - addressed in versions 20.16.0-1, 22.22.0-5
nodejs-docs - addressed in versions 20.16.0-1, 22.22.0-5
nodejs-full-i18n - addressed in versions 20.16.0-1, 22.22.0-5
nodejs - addressed in versions 20.16.0-1, 22.22.0-5
nodejs-docs - addressed in versions 20.18.2-2, 20.18.2-7
nodejs - addressed in versions 20.18.2-2, 20.18.2-7
nodejs-libs - addressed in versions 20.18.2-2, 20.18.2-7
nodejs-full-i18n - addressed in versions 20.18.2-2, 20.18.2-7
nodejs-debugsource - addressed in versions 20.18.2-2, 20.18.2-7
nodejs-debuginfo - addressed in versions 20.18.2-2, 20.18.2-7
nodejs-devel - addressed in versions 20.18.2-2, 20.18.2-7
IBM Cloud Pak for Business Automation - addressed in versions 21.0.3-IF037, 24.0.0-IF003
net-libs/nodejs - update to 22.4.1
nodejs-libs - update to 22.22.0-5
npm22 - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs22-debugsource - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs22 - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
corepack22 - update to 22.22.2-150600.13.15.1
nodejs22-devel - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs22-debuginfo - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs22-docs - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs-packaging-bundler - update to 2021.06-4
nodejs-packaging - update to 2021.06-4

External References

Related Security Bulletins