PT-2024-4035

CVE-2024-21890

·

Published

2024-02-16

·

Updated

2025-02-12

Description by

CVSS 3.1
8.1
High
MetricsAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions Node.js versions 20 through 21
Description The issue is related to the Node.js Permission Model, which has misleading documentation regarding the use of wildcards in file paths. Specifically, the documentation does not clarify that wildcards should only be used as the last character of a file path. For example, the command --allow-fs-read=/home/node/.ssh/*.pub will ignore pub and give access to everything after .ssh/. This affects all users using the experimental permission model in the affected Node.js versions.
Recommendations For Node.js versions 20 through 21, consider avoiding the use of wildcards in file paths until the documentation is clarified or updated. As a temporary workaround, ensure that wildcards are only used as the last character of a file path to prevent unintended access. Restrict access to sensitive files and directories to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this issue.
Exploitability
Exploit
Fix
Researchers
Vendors
Affected products
Related identifiers
ALSA-2024:1687
ALSA-2024:1688
ALT-PU-2024-3054
AZL-35900
BIT-NODE-2024-21890
BIT-NODE-MIN-2024-21890
CESA-2024_1687
OPENSUSE-SU-2024:13697-1
OPENSUSE-SU-2024:13698-1
RHSA-2024:1687
RHSA-2024_1687
RHSA-2024:1688
RHSA-2024_1688
RLSA-2024:1687
RLSA-2024:1688
SUSE-SU-2024:0643-1
Found an issue in the description? Have something to add? Feel free to write us 👾