CVE-2024-21896: Path Traversal

Published Feb 20, 2024
·
Updated

Node.js could allow a remote attacker to traverse directories on the system. By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, an attacker could send a specially crafted URL request containing "dot dot" sequences (/../) to read arbitrary files on the system.

Other sources

The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve(). By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, the application can modify the result of path.resolve(), which leads to a path traversal vulnerability. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

NVD

Affected Software

5 affected componentsFixes available
redhat/nodejs<20.11.1
20.11.1
IBM Cognos Analytics<=12.0.0-12.0.3
IBM Cognos Analytics<=11.2.0-11.2.4 FP3
Nodejs Node.js>=20.0.0<20.11.1
Nodejs Node.js>=21.0.0<21.6.2

Event History

Feb 20, 2024
CVE Published
via MITRE·01:31 AM
Data Sourced
via MITRE·01:31 AM
DescriptionSeverity
Data Sourced
via NVD·02:15 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-21896?

CVE-2024-21896 has a high severity as it allows remote directory traversal, potentially exposing sensitive files.

2

Who is affected by CVE-2024-21896?

CVE-2024-21896 affects Node.js installations and IBM Cognos Analytics versions up to 12.0.3 and 11.2.4 FP3.

3

How do I fix CVE-2024-21896?

To fix CVE-2024-21896, update Node.js to version 20.11.1 and apply the relevant patches for affected Cognos Analytics versions.

4

What vulnerability does CVE-2024-21896 exploit?

CVE-2024-21896 exploits directory traversal vulnerabilities through manipulated Buffer internals in Node.js.

5

What can an attacker do with CVE-2024-21896?

An attacker can use CVE-2024-21896 to send crafted URL requests that read arbitrary files from the system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203