CVE-2024-21890

MEDIUMCVSS 6.5/10EPSS 0.95%

Last modified

CVE-2024-21890 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.. EPSS estimates a 0.95% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
6.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

EPSS Probability
0.95%

56.5th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

VendorProductVersions
NodejsNode.Js>= 20.0.0, < 20.11.1
NodejsNode.Js>= 21.0.0, < 21.6.2

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2024-21890?
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.
How severe is CVE-2024-21890?
CVE-2024-21890 has a CVSS score of 6.5/10 (MEDIUM severity). The EPSS model estimates a 0.95% probability of exploitation in the next 30 days.
How do I fix CVE-2024-21890?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-21890?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST