Bug 8725 - [Anolis OS 8] Bugfix for CVE-2024-21890
Summary: [Anolis OS 8] Bugfix for CVE-2024-21890
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: songkai
QA Contact: shuming
URL:
Whiteboard:
Keywords: CVE
Depends on:
Blocks:
 
Reported: 2024-04-09 10:29 UTC by 小龙
Modified: 2024-04-09 10:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 小龙 admin 2024-04-09 10:29:12 UTC
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.

Broken commit info:

Bugfix commit info:
https://github.com/nodejs/node/commit/d01dd4291dac6d97a8ea5d831e7fbecc64d6fad5
https://github.com/nodejs/node/commit/d6da413aa4df6bc22625bb2701f11674a6e75b70