Permissions, Privileges, and Access Controls in Node.js - CVE-2023-30581

 

Permissions, Privileges, and Access Controls in Node.js - CVE-2023-30581

Published: June 21, 2023


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

Vulnerability details

The vulnerability allows a remote attacker to bypass implemented security restrictions.

The vulnerability exists due to the use of proto in process.mainModule.proto.require(). This allows to bypass the policy mechanism and require modules outside of the policy.json definition.


Affected software

Node.js
IBM Business Automation Workflow
IBM Watson Discovery for IBM Cloud Pak for Data
App Connect Enterprise Certified Container
IBM Spectrum Control
IBM Spectrum Symphony
Automation Assets in IBM Cloud Pak for Integration (CP4I)
Debian Linux
Amazon Linux AMI
Gentoo Linux
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Oracle Solaris
Web and Scripting Module
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
openSUSE Leap
openEuler
Fedora
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
nodejs-nodemon
npm
v8-devel
nodejs-libs
nodejs-debugsource
nodejs-devel
nodejs-full-i18n
nodejs-debuginfo
nodejs
nodejs-docs
nodejs12-docs
nodejs12-debuginfo
nodejs12-devel
npm12
nodejs12-debugsource
nodejs12
nodejs14-docs
nodejs14-debugsource
nodejs14
npm14
nodejs14-devel
nodejs14-debuginfo
corepack14
nodejs (Red Hat package)
nodejs16
nodejs16-devel
nodejs16-debugsource
npm16
nodejs16-docs
nodejs16-debuginfo
corepack16
nodejs18
nodejs18-debuginfo
nodejs18-devel
npm18
nodejs18-docs
nodejs18-debugsource
corepack18
nodejs (Debian package)
nodejs-packaging
nodejs-packaging-bundler
Voice Gateway
IBM Cloud Pak for Watson AIOps
Platform Navigator in IBM Cloud Pak for Integration (CP4I)

How to mitigate CVE-2023-30581

Install updates from vendor's website.

Node.js - addressed in versions 16.20.1, 18.16.1, 20.3.1
Voice Gateway - addressed in versions 1.0.8.6, 1.0.8.10
nodejs-nodemon - addressed in versions 2.0.20-2, 2.0.20-3.0.1
IBM Cloud Pak for Watson AIOps - update to 4.1.2
IBM Watson Discovery for IBM Cloud Pak for Data - update to 4.7.3
App Connect Enterprise Certified Container - addressed in versions 5.0.10, 9.2.0
IBM Spectrum Control - update to 5.4.10.2
npm - update to 6.14.16-1.12.22.11.4
IBM Spectrum Symphony - update to 7.3.2 Fix 601711
v8-devel - update to 7.8.279.23-1.12.22.11.4
npm - addressed in versions 8.19.4-1.16.20.1.1.0.1, 9.5.1-1.18.16.1.1
nodejs-libs - update to 12.22.11-4
nodejs-debugsource - update to 12.22.11-4
nodejs-devel - update to 12.22.11-4
nodejs-full-i18n - update to 12.22.11-4
nodejs-debuginfo - update to 12.22.11-4
nodejs - update to 12.22.11-4
nodejs-docs - update to 12.22.11-4
nodejs12-docs - update to 12.22.12-150200.4.50.1
nodejs12-debuginfo - update to 12.22.12-150200.4.50.1
nodejs12-devel - update to 12.22.12-150200.4.50.1
npm12 - update to 12.22.12-150200.4.50.1
nodejs12-debugsource - update to 12.22.12-150200.4.50.1
nodejs12 - update to 12.22.12-150200.4.50.1
nodejs14-docs - addressed in versions 14.21.3-6.46.1, 14.21.3-150200.15.49.1
nodejs14-debugsource - addressed in versions 14.21.3-6.46.1, 14.21.3-150200.15.49.1
nodejs14 - addressed in versions 14.21.3-6.46.1, 14.21.3-150200.15.49.1
npm14 - addressed in versions 14.21.3-6.46.1, 14.21.3-150200.15.49.1
nodejs14-devel - addressed in versions 14.21.3-6.46.1, 14.21.3-150200.15.49.1
nodejs14-debuginfo - addressed in versions 14.21.3-6.46.1, 14.21.3-150200.15.49.1
corepack14 - update to 14.21.3-150200.15.49.1
nodejs (Red Hat package) - addressed in versions 16.20.1-1.el9_2, 16.20.2-1.el9_0
nodejs16 - addressed in versions 16.20.1-1.fc37, 16.20.1-1.fc38
nodejs-docs - addressed in versions 16.20.1-1.0.1, 18.16.1-1
nodejs-full-i18n - addressed in versions 16.20.1-1.0.1, 18.16.1-1
nodejs-devel - addressed in versions 16.20.1-1.0.1, 18.16.1-1
nodejs - addressed in versions 16.20.1-1.0.1, 18.16.1-1
nodejs16-devel - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
nodejs16-debugsource - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
npm16 - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
nodejs16-docs - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
nodejs16 - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
nodejs16-debuginfo - addressed in versions 16.20.1-8.30.1, 16.20.1-150300.7.24.2, 16.20.1-150400.3.21.1
corepack16 - update to 16.20.1-150400.3.21.1
nodejs - update to 18.12.1-1
nodejs18 - addressed in versions 18.16.1-1.fc37, 18.16.1-1.fc38
nodejs18 - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
nodejs18-debuginfo - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
nodejs18-devel - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
npm18 - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
nodejs18-docs - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
nodejs18-debugsource - addressed in versions 18.16.1-8.9.1, 18.16.1-150400.9.9.1
corepack18 - update to 18.16.1-150400.9.9.1
nodejs (Debian package) - update to 18.19.0+dfsg-6~deb12u1
nodejs-packaging - addressed in versions 25-1.0.1, 2021.06-4
nodejs-packaging-bundler - update to 2021.06-4
Automation Assets in IBM Cloud Pak for Integration (CP4I) - update to 2022.2.1-11
Platform Navigator in IBM Cloud Pak for Integration (CP4I) - addressed in versions 2022.2.1-12, 2023.2.1-1

External References

Related Security Bulletins