CVE-2024-21890 Security feature bypass in Node

Medium 5.0 Published Updated

Misleading documentation in Node.js experimental permission model allows unintended file access via wildcards, requiring users to enable this feature.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-21890?

CVE-2024-21890 is a medium-severity vulnerability in Nodejs Node.js, published on 20 Feb 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

The Node.js Permission Model does not clarify in the documentation that wildcards should be only used as the last character of a file path. For example: ``` --allow-fs-read=/home/node/.ssh/*.pub ```

will ignore `pub` and give access to everything after `.ssh/`.

This misleading documentation 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.

Which versions are affected by CVE-2024-21890?

2 open source packages ship an affected version, including node and node-min. It affects 1 product.

PackageAffectedFixed in
node BitnamiFrom 20.0.020.11.1, 21.6.2
node-min BitnamiFrom 20.0.020.11.1, 21.6.2

Products include Nodejs Node.js.

How do I fix CVE-2024-21890?

Upgrade node to a fixed version for your release line: 20.11.1 or 21.6.2.

Is CVE-2024-21890 being exploited?

There is no known exploitation of CVE-2024-21890 in the wild and no public exploit code.

All Nodejs Node.js vulnerabilities

Sources

Also known as AZL-35900, BELL-CVE-2024-21890, BIT-node-2024-21890, BIT-node-min-2024-21890, GHSA-m27w-wvc9-v4mq, UBUNTU-CVE-2024-21890.

Is CVE-2024-21890 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free