登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
代码拉取完成,页面将自动刷新
仓库状态说明
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
125
Star
5
Fork
51
src-openEuler
/
nodejs
关闭
代码
Issues
1
Pull Requests
4
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
CVE-2021-39135
已完成
#I4ZDRN
CVE和安全问题
jinjin
创建于
2022-03-24 15:08
一、漏洞信息 漏洞编号:[CVE-2021-39135](https://nvd.nist.gov/vuln/detail/CVE-2021-39135) 漏洞归属组件:[nodejs](https://gitee.com/src-openeuler/nodejs) 漏洞归属的版本:12.18.4 CVSS V3.0分值: BaseScore:7.8 High Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 漏洞简述: `@npmcli/arborist`, the library that calculates dependency trees and manages the node_modules folder hierarchy for the npm command line interface, aims to guarantee that package dependency contracts will be met, and the extraction of package contents will always be performed into the expected folder. This is accomplished by extracting package contents into a project s `node_modules` folder. If the `node_modules` folder of the root project or any of its dependencies is somehow replaced with a symbolic link, it could allow Arborist to write package dependencies to any arbitrary location on the file system. Note that symbolic links contained within package artifact contents are filtered out, so another means of creating a `node_modules` symbolic link would have to be employed. 1. A `preinstall` script could replace `node_modules` with a symlink. (This is prevented by using `--ignore-scripts`.) 2. An attacker could supply the target with a git repository, instructing them to run `npm install --ignore-scripts` in the root. This may be successful, because `npm install --ignore-scripts` is typically not capable of making changes outside of the project directory, so it may be deemed safe. This is patched in @npmcli/arborist 2.8.2 which is included in npm v7.20.7 and above. For more information including workarounds please see the referenced GHSA-gmw6-94gg-2rc2. 漏洞公开时间:2021-09-01 01:15 漏洞创建时间:2022-03-17 17:33:09 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2021-39135 <details> <summary>更多参考(点击展开)</summary> 无 </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: 其它 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> 无 </details> 二、漏洞分析结构反馈 影响性分析说明: `@npmcli/arborist`,计算依赖树并管理 npm 命令行界面的 node_modules 文件夹层次结构的库,旨在保证满足包依赖契约,并且包内容的提取将始终执行到预期的文件夹。这是通过将包内容提取到项目的“node_modules”文件夹中来完成的。如果根项目的 `node_modules` 文件夹或其任何依赖项以某种方式被符号链接替换,它可能允许 Arborist 将包依赖项写入文件系统上的任意位置。请注意,包工件内容中包含的符号链接被过滤掉,因此必须采用另一种创建“node_modules”符号链接的方法。 1. `preinstall` 脚本可以用符号链接替换 `node_modules`。 (这可以通过使用 `--ignore-scripts` 来防止。) 2. 攻击者可以为目标提供一个 git 存储库,指示他们在根目录中运行 `npm install --ignore-scripts`。这可能会成功,因为 `npm install --ignore-scripts` 通常无法在项目目录之外进行更改,因此它可能被认为是安全的。这是在 npm v7.20.7 及更高版本中包含的 @npmcli/arborist 2.8.2 中修补的。有关包括解决方法在内的更多信息,请参阅参考的 GHSA-gmw6-94gg-2rc2。 openEuler评分: 7.8 Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 受影响版本排查(受影响/不受影响): 1.master(12.22.11):受影响 2.openEuler-20.03-LTS-SP1(12.22.11):受影响 3.openEuler-20.03-LTS-SP2(12.22.11):受影响 4.openEuler-20.03-LTS-SP3(12.22.11):受影响 5.openEuler-21.09(12.22.11):受影响 6.openEuler-22.03-LTS(12.22.11):受影响 7.openEuler-22.03-LTS-Next(12.22.11):受影响 修复是否涉及abi变化(是/否): 1.master(12.22.11):是 2.openEuler-20.03-LTS-SP1(12.22.11):是 3.openEuler-20.03-LTS-SP2(12.22.11):是 4.openEuler-20.03-LTS-SP3(12.22.11):是 5.openEuler-21.09(12.22.11):是 6.openEuler-22.03-LTS(12.22.11):是 7.openEuler-22.03-LTS-Next(12.22.11):是 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2022-1620
一、漏洞信息 漏洞编号:[CVE-2021-39135](https://nvd.nist.gov/vuln/detail/CVE-2021-39135) 漏洞归属组件:[nodejs](https://gitee.com/src-openeuler/nodejs) 漏洞归属的版本:12.18.4 CVSS V3.0分值: BaseScore:7.8 High Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 漏洞简述: `@npmcli/arborist`, the library that calculates dependency trees and manages the node_modules folder hierarchy for the npm command line interface, aims to guarantee that package dependency contracts will be met, and the extraction of package contents will always be performed into the expected folder. This is accomplished by extracting package contents into a project s `node_modules` folder. If the `node_modules` folder of the root project or any of its dependencies is somehow replaced with a symbolic link, it could allow Arborist to write package dependencies to any arbitrary location on the file system. Note that symbolic links contained within package artifact contents are filtered out, so another means of creating a `node_modules` symbolic link would have to be employed. 1. A `preinstall` script could replace `node_modules` with a symlink. (This is prevented by using `--ignore-scripts`.) 2. An attacker could supply the target with a git repository, instructing them to run `npm install --ignore-scripts` in the root. This may be successful, because `npm install --ignore-scripts` is typically not capable of making changes outside of the project directory, so it may be deemed safe. This is patched in @npmcli/arborist 2.8.2 which is included in npm v7.20.7 and above. For more information including workarounds please see the referenced GHSA-gmw6-94gg-2rc2. 漏洞公开时间:2021-09-01 01:15 漏洞创建时间:2022-03-17 17:33:09 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2021-39135 <details> <summary>更多参考(点击展开)</summary> 无 </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: 其它 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> 无 </details> 二、漏洞分析结构反馈 影响性分析说明: `@npmcli/arborist`,计算依赖树并管理 npm 命令行界面的 node_modules 文件夹层次结构的库,旨在保证满足包依赖契约,并且包内容的提取将始终执行到预期的文件夹。这是通过将包内容提取到项目的“node_modules”文件夹中来完成的。如果根项目的 `node_modules` 文件夹或其任何依赖项以某种方式被符号链接替换,它可能允许 Arborist 将包依赖项写入文件系统上的任意位置。请注意,包工件内容中包含的符号链接被过滤掉,因此必须采用另一种创建“node_modules”符号链接的方法。 1. `preinstall` 脚本可以用符号链接替换 `node_modules`。 (这可以通过使用 `--ignore-scripts` 来防止。) 2. 攻击者可以为目标提供一个 git 存储库,指示他们在根目录中运行 `npm install --ignore-scripts`。这可能会成功,因为 `npm install --ignore-scripts` 通常无法在项目目录之外进行更改,因此它可能被认为是安全的。这是在 npm v7.20.7 及更高版本中包含的 @npmcli/arborist 2.8.2 中修补的。有关包括解决方法在内的更多信息,请参阅参考的 GHSA-gmw6-94gg-2rc2。 openEuler评分: 7.8 Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H 受影响版本排查(受影响/不受影响): 1.master(12.22.11):受影响 2.openEuler-20.03-LTS-SP1(12.22.11):受影响 3.openEuler-20.03-LTS-SP2(12.22.11):受影响 4.openEuler-20.03-LTS-SP3(12.22.11):受影响 5.openEuler-21.09(12.22.11):受影响 6.openEuler-22.03-LTS(12.22.11):受影响 7.openEuler-22.03-LTS-Next(12.22.11):受影响 修复是否涉及abi变化(是/否): 1.master(12.22.11):是 2.openEuler-20.03-LTS-SP1(12.22.11):是 3.openEuler-20.03-LTS-SP2(12.22.11):是 4.openEuler-20.03-LTS-SP3(12.22.11):是 5.openEuler-21.09(12.22.11):是 6.openEuler-22.03-LTS(12.22.11):是 7.openEuler-22.03-LTS-Next(12.22.11):是 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2022-1620
评论 (
8
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
进行中
已完成
已拒绝
负责人
未设置
solarhu
solarhu
负责人
协作者
+负责人
+协作者
标签
CVE/FIXED
sig/sig-nodejs
abi-changed
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (30)
标签 (39)
master
openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-25.09
openEuler-22.03-LTS-SP4
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-25.03
openEuler-22.03-LTS-SP1
sync-pr179-openEuler-22.03-LTS-SP4-to-openEuler-20.03-LTS-SP4
openEuler-24.09
openEuler-22.03-LTS-Next
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS
openEuler-20.03-LTS-SP1
openEuler-20.03-LTS-SP3
openEuler-23.09
openEuler-23.03
openEuler-22.09
openEuler-21.09
openEuler-20.03-LTS-SP2
openEuler-22.03-LTS-LoongArch
openEuler-20.03-LTS-Next
openEuler-20.03-LTS
openEuler-20.09
openEuler-21.03
revert-merge-11-master
openEuler-25.09-release
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-update-20250523
openEuler-24.03-LTS-SP1-update-20250523
openEuler-24.03-LTS-update-20250418
openEuler-24.03-LTS-SP1-update-20250418
openEuler-22.03-LTS-SP3-update-20250418
openEuler-22.03-LTS-SP4-update-20250418
openEuler-20.03-LTS-SP4-update-20250418
openEuler-25.03-release
openEuler-22.03-LTS-SP3-update-20250314
openEuler-22.03-LTS-SP4-update-20250314
openEuler-20.03-LTS-SP4-update-20250314
openEuler-24.03-LTS-update-20250208
openEuler-24.03-LTS-SP1-update-20250208
openEuler-24.03-LTS-update-20250110
openEuler-24.03-LTS-SP1-update-20250110
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-update-before-20241025
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/nodejs.git
git@gitee.com:src-openeuler/nodejs.git
src-openeuler
nodejs
nodejs
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册