Path traversal in Node.js - CVE-2024-21891

 

Path traversal in Node.js - CVE-2024-21891

Published: February 22, 2024


Vulnerability identifier: #VU86726
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-21891
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences. A remote attacker can send a specially crafted HTTP request and read arbitrary files on the system.


Affected software

Node.js
Gentoo Linux
Amazon Linux AMI
Oracle Linux
SUSE Linux Enterprise High Performance Computing 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
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Anolis OS
Web and Scripting Module
openSUSE Leap
Oracle Solaris
IBM Business Automation Workflow
IBM Cloud Transformation Advisor
Use Case Manager App
IBM Watson Discovery for IBM Cloud Pak for Data
EasyApache
IBM Cloud Pak for Business Automation
Answer Retrieval for Watson Discovery On Prem
IBM Planning Analytics Workspace
Voice Gateway
nodejs-nodemon
npm
nodejs20
nodejs20-debugsource
nodejs20-docs
nodejs20-debuginfo
nodejs20-devel
npm20
corepack20
nodejs
nodejs-devel
nodejs-full-i18n
nodejs-docs
net-libs/nodejs
nodejs-packaging
nodejs-packaging-bundler
IBM Cognos Analytics

How to mitigate CVE-2024-21891

Install update from vendor's website.

Node.js - addressed in versions 20.11.1, 21.6.2
Answer Retrieval for Watson Discovery On Prem - update to 2.16.0
Voice Gateway - addressed in versions 1.0.8.10, 1.0.8.18
IBM Planning Analytics Workspace - addressed in versions 2.0.95, 2.1.2
nodejs-nodemon - update to 3.0.1-1
IBM Cloud Transformation Advisor - update to 3.9.0
Use Case Manager App - update to 4.0.0
IBM Watson Discovery for IBM Cloud Pak for Data - update to 4.8.5
EasyApache - update to 4 2024-2-21
npm - update to 10.8.1-1.20.16.0.1
IBM Cognos Analytics - addressed in versions 11.2.4 FP4, 12.0.4
Oracle Solaris - addressed in versions 11.3 ESU 36.33, 11.4 SRU 68
nodejs20 - update to 20.11.1-1
nodejs20-debugsource - update to 20.11.1-150500.11.6.1
nodejs20-docs - update to 20.11.1-150500.11.6.1
nodejs20 - update to 20.11.1-150500.11.6.1
nodejs20-debuginfo - update to 20.11.1-150500.11.6.1
nodejs20-devel - update to 20.11.1-150500.11.6.1
npm20 - update to 20.11.1-150500.11.6.1
corepack20 - update to 20.11.1-150500.11.6.1
nodejs - update to 20.16.0-1
nodejs-devel - update to 20.16.0-1
nodejs-full-i18n - update to 20.16.0-1
nodejs-docs - update to 20.16.0-1
IBM Cloud Pak for Business Automation - addressed in versions 21.0.3.33, 23.0.2.5
net-libs/nodejs - update to 22.4.1
nodejs-packaging - update to 2021.06-4
nodejs-packaging-bundler - update to 2021.06-4

External References

Related Security Bulletins