CVE-2024-21890: Improper handling of wildcards in --allow-fs-read and --allow-fs-write

Published Feb 14, 2024
·
Updated

Improper handling of wildcards in --allow-fs-read and --allow-fs-write

Other sources

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/.

Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

— Node.Js

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.

— MITRE

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/.

Impacts: This misleading documentation affects all users using the experimental permission model in active release lines: 20.x and 21.x.

Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.

— Red Hat

Affected Software

8 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
Node.js Node.js>=20.0.0<20.11.1, >=21.0.0<21.6.2
20.11.121.6.2
Node.js Node.js>=20.0.0<20.11.1
20.11.1
Node.js Node.js>=21.0.0<21.6.2
21.6.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/nodejs to a version that resolves this vulnerability.

    Fixed in 20.11.1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 20.11.1Fixed in 21.6.2
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 20.11.1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 21.6.2
  5. Configuration

    Update permission-model arguments so wildcards in --allow-fs-read and --allow-fs-write appear only as the final character; do not use patterns such as --allow-fs-read=/home/node/.ssh/*.pub.

    Node.js Permission Model --allow-fs-read and --allow-fs-write wildcard usage = Use wildcards only as the last character of a file path

Event History

Feb 14, 2024
CVE Published
via Node.js·03:30 PM
Data Sourced
via Node.js·03:30 PM
DescriptionSeverity
Data Sourced
via Node.js·05:35 PM
Affected Software
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
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-21890?

CVE-2024-21890 has been rated as a high severity vulnerability due to its potential to allow remote attackers to bypass security restrictions.

2

How do I fix CVE-2024-21890?

To fix CVE-2024-21890, update Node.js to version 20.11.1 or apply the relevant patches from IBM for Cognos Analytics.

3

What versions of Node.js are affected by CVE-2024-21890?

CVE-2024-21890 affects versions of Node.js prior to 20.11.1.

4

What types of attacks can exploit CVE-2024-21890?

CVE-2024-21890 can be exploited by remote attackers to gain unauthorized access to the system due to improper handling of wildcards.

5

Is there documentation clarifying the Node.js Permission Model related to CVE-2024-21890?

The Node.js Permission Model lacks clear documentation regarding the handling of permission flags, which is part of the problem outlined in CVE-2024-21890.

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