登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
3
Star
0
Fork
15
src-openEuler
/
hadoop-3.1
代码
Issues
9
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
CVE-2023-26031
待办的
#I9AWE6
CVE和安全问题
majun-bot
创建于
2024-03-23 05:19
一、漏洞信息 漏洞编号:[CVE-2023-26031](https://nvd.nist.gov/vuln/detail/CVE-2023-26031) 漏洞归属组件:[hadoop-3.1](https://gitee.com/src-openeuler/hadoop-3.1) 漏洞归属的版本:3.1.4 CVSS V3.0分值: BaseScore:7.5 High Vector:CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H 漏洞简述: Relative library resolution in linux container-executor binary in Apache Hadoop 3.3.1-3.3.4 on Linux allows local user to gain root privileges. If the YARN cluster is accepting work from remote (authenticated) users, this MAY permit remote users to gain root privileges.Hadoop 3.3.0 updated the YARN Secure Containers https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/SecureContainer.html to add a feature for executing user-submitted applications in isolated linux containers.The native binary HADOOP_HOME/bin/container-executor is used to launch these containers; it must be owned by root and have the suid bit set in order for the YARN processes to run the containers as the specific users submitting the jobs.The patch YARN-10495 https://issues.apache.org/jira/browse/YARN-10495 . make the rpath of container-executor configurable modified the library loading path for loading .so files from $ORIGIN/ to $ORIGIN/:../lib/native/ . This is the a path through which libcrypto.so is located. Thus it is is possible for a user with reduced privileges to install a malicious libcrypto library into a path to which they have write access, invoke the container-executor command, and have their modified library executed as root.If the YARN cluster is accepting work from remote (authenticated) users, and these users submitted job are executed in the physical host, rather than a container, then the CVE permits remote users to gain root privileges.The fix for the vulnerability is to revert the change, which is done in YARN-11441 https://issues.apache.org/jira/browse/YARN-11441 , Revert YARN-10495 . This patch is in hadoop-3.3.5.To determine whether a version of container-executor is vulnerable, use the readelf command. If the RUNPATH or RPATH value contains the relative path ./lib/native/ then it is at risk$ readelf -d container-executor|grep RUNPATH |RPATH 0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/:../lib/native/]If it does not, then it is safe:$ readelf -d container-executor|grep RUNPATH |RPATH 0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/]For an at-risk version of container-executor to enable privilege escalation, the owner must be root and the suid bit must be set$ ls -laF /opt/hadoop/bin/container-executor---Sr-s---. 1 root hadoop 802968 May 9 20:21 /opt/hadoop/bin/container-executorA safe installation lacks the suid bit; ideally is also not owned by root.$ ls -laF /opt/hadoop/bin/container-executor-rwxr-xr-x. 1 yarn hadoop 802968 May 9 20:21 /opt/hadoop/bin/container-executorThis configuration does not support Yarn Secure Containers, but all other hadoop services, including YARN job execution outside secure containers continue to work. 漏洞公开时间:2023-11-16 17:15:06 漏洞创建时间:2025-01-22 07:55:49 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2023-26031 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | security.apache.org | https://hadoop.apache.org/cve_list.html | | | security.apache.org | https://issues.apache.org/jira/browse/YARN-11441 | | | security.apache.org | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | | | security.apache.org | https://security.netapp.com/advisory/ntap-20240112-0001/ | | | redhat_bugzilla | https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/SecureContainer.html | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://issues.apache.org/jira/browse/YARN-10495 | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://issues.apache.org/jira/browse/YARN-11441 | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://issues.apache.org/jira/browse/YARN-11441 | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://hadoop.apache.org/cve_list.html | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | debian | | https://security-tracker.debian.org/tracker/CVE-2023-26031 | | oracle | | https://www.oracle.com/security-alerts/cpujul2024.html | | github_advisory | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://hadoop.apache.org/cve_list.html | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://nvd.nist.gov/vuln/detail/CVE-2023-26031 | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://issues.apache.org/jira/browse/YARN-11441 | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 | https://github.com/advisories/GHSA-94jh-j374-9r3j | | osv | https://hadoop.apache.org/cve_list.html | https://osv.dev/vulnerability/CVE-2023-26031 | | osv | https://issues.apache.org/jira/browse/YARN-11441 | https://osv.dev/vulnerability/CVE-2023-26031 | | osv | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | https://osv.dev/vulnerability/CVE-2023-26031 | | osv | https://security.netapp.com/advisory/ntap-20240112-0001/ | https://osv.dev/vulnerability/CVE-2023-26031 | | snyk | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-6067572 | | snyk | https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 | https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-6067572 | | snyk | https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 | https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-6067572 | | snyk | https://hadoop.apache.org/cve_list.html | https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-6067572 | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: 其它 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> | 影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 | | ------- | -------- | ------- | -------- | --------- | | | | https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 | | github_advisory | | | | https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 | | github_advisory | | | | https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 | | snyk | | | | https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 | | snyk | | | | https://hadoop.apache.org/cve_list.html | | nvd | | | | https://issues.apache.org/jira/browse/YARN-11441 | | nvd | | | | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | | nvd | </details> 二、漏洞分析结构反馈 影响性分析说明: openEuler评分: 受影响版本排查(受影响/不受影响): 1.master(3.1.4): 2.openEuler-20.03-LTS-SP4(3.1.4): 3.openEuler-22.03-LTS-SP3(3.1.4): 4.openEuler-22.03-LTS-SP4(3.1.4): 5.openEuler-24.03-LTS(3.1.4): 6.openEuler-24.03-LTS-Next(3.1.4): 7.openEuler-24.03-LTS-SP1(3.1.4): 修复是否涉及abi变化(是/否): 1.master(3.1.4): 2.openEuler-20.03-LTS-SP4(3.1.4): 3.openEuler-22.03-LTS-SP3(3.1.4): 4.openEuler-22.03-LTS-SP4(3.1.4): 5.openEuler-24.03-LTS(3.1.4): 6.openEuler-24.03-LTS-Next(3.1.4): 7.openEuler-24.03-LTS-SP1(3.1.4): 原因说明: 1.master(3.1.4): 2.openEuler-20.03-LTS-SP4(3.1.4): 3.openEuler-22.03-LTS-SP3(3.1.4): 4.openEuler-22.03-LTS-SP4(3.1.4): 5.openEuler-24.03-LTS(3.1.4): 6.openEuler-24.03-LTS-Next(3.1.4): 7.openEuler-24.03-LTS-SP1(3.1.4):
一、漏洞信息 漏洞编号:[CVE-2023-26031](https://nvd.nist.gov/vuln/detail/CVE-2023-26031) 漏洞归属组件:[hadoop-3.1](https://gitee.com/src-openeuler/hadoop-3.1) 漏洞归属的版本:3.1.4 CVSS V3.0分值: BaseScore:7.5 High Vector:CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H 漏洞简述: Relative library resolution in linux container-executor binary in Apache Hadoop 3.3.1-3.3.4 on Linux allows local user to gain root privileges. If the YARN cluster is accepting work from remote (authenticated) users, this MAY permit remote users to gain root privileges.Hadoop 3.3.0 updated the YARN Secure Containers https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/SecureContainer.html to add a feature for executing user-submitted applications in isolated linux containers.The native binary HADOOP_HOME/bin/container-executor is used to launch these containers; it must be owned by root and have the suid bit set in order for the YARN processes to run the containers as the specific users submitting the jobs.The patch YARN-10495 https://issues.apache.org/jira/browse/YARN-10495 . make the rpath of container-executor configurable modified the library loading path for loading .so files from $ORIGIN/ to $ORIGIN/:../lib/native/ . This is the a path through which libcrypto.so is located. Thus it is is possible for a user with reduced privileges to install a malicious libcrypto library into a path to which they have write access, invoke the container-executor command, and have their modified library executed as root.If the YARN cluster is accepting work from remote (authenticated) users, and these users submitted job are executed in the physical host, rather than a container, then the CVE permits remote users to gain root privileges.The fix for the vulnerability is to revert the change, which is done in YARN-11441 https://issues.apache.org/jira/browse/YARN-11441 , Revert YARN-10495 . This patch is in hadoop-3.3.5.To determine whether a version of container-executor is vulnerable, use the readelf command. If the RUNPATH or RPATH value contains the relative path ./lib/native/ then it is at risk$ readelf -d container-executor|grep RUNPATH |RPATH 0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/:../lib/native/]If it does not, then it is safe:$ readelf -d container-executor|grep RUNPATH |RPATH 0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/]For an at-risk version of container-executor to enable privilege escalation, the owner must be root and the suid bit must be set$ ls -laF /opt/hadoop/bin/container-executor---Sr-s---. 1 root hadoop 802968 May 9 20:21 /opt/hadoop/bin/container-executorA safe installation lacks the suid bit; ideally is also not owned by root.$ ls -laF /opt/hadoop/bin/container-executor-rwxr-xr-x. 1 yarn hadoop 802968 May 9 20:21 /opt/hadoop/bin/container-executorThis configuration does not support Yarn Secure Containers, but all other hadoop services, including YARN job execution outside secure containers continue to work. 漏洞公开时间:2023-11-16 17:15:06 漏洞创建时间:2025-01-22 07:55:49 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2023-26031 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | security.apache.org | https://hadoop.apache.org/cve_list.html | | | security.apache.org | https://issues.apache.org/jira/browse/YARN-11441 | | | security.apache.org | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | | | security.apache.org | https://security.netapp.com/advisory/ntap-20240112-0001/ | | | redhat_bugzilla | https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/SecureContainer.html | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://issues.apache.org/jira/browse/YARN-10495 | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://issues.apache.org/jira/browse/YARN-11441 | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://issues.apache.org/jira/browse/YARN-11441 | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://hadoop.apache.org/cve_list.html | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | redhat_bugzilla | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | https://bugzilla.redhat.com/show_bug.cgi?id=2250137 | | debian | | https://security-tracker.debian.org/tracker/CVE-2023-26031 | | oracle | | https://www.oracle.com/security-alerts/cpujul2024.html | | github_advisory | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://hadoop.apache.org/cve_list.html | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://nvd.nist.gov/vuln/detail/CVE-2023-26031 | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://issues.apache.org/jira/browse/YARN-11441 | https://github.com/advisories/GHSA-94jh-j374-9r3j | | github_advisory | https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 | https://github.com/advisories/GHSA-94jh-j374-9r3j | | osv | https://hadoop.apache.org/cve_list.html | https://osv.dev/vulnerability/CVE-2023-26031 | | osv | https://issues.apache.org/jira/browse/YARN-11441 | https://osv.dev/vulnerability/CVE-2023-26031 | | osv | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | https://osv.dev/vulnerability/CVE-2023-26031 | | osv | https://security.netapp.com/advisory/ntap-20240112-0001/ | https://osv.dev/vulnerability/CVE-2023-26031 | | snyk | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-6067572 | | snyk | https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 | https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-6067572 | | snyk | https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 | https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-6067572 | | snyk | https://hadoop.apache.org/cve_list.html | https://security.snyk.io/vuln/SNYK-JAVA-ORGAPACHEHADOOP-6067572 | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: 其它 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> | 影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 | | ------- | -------- | ------- | -------- | --------- | | | | https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 | | github_advisory | | | | https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 | | github_advisory | | | | https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 | | snyk | | | | https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 | | snyk | | | | https://hadoop.apache.org/cve_list.html | | nvd | | | | https://issues.apache.org/jira/browse/YARN-11441 | | nvd | | | | https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r | | nvd | </details> 二、漏洞分析结构反馈 影响性分析说明: openEuler评分: 受影响版本排查(受影响/不受影响): 1.master(3.1.4): 2.openEuler-20.03-LTS-SP4(3.1.4): 3.openEuler-22.03-LTS-SP3(3.1.4): 4.openEuler-22.03-LTS-SP4(3.1.4): 5.openEuler-24.03-LTS(3.1.4): 6.openEuler-24.03-LTS-Next(3.1.4): 7.openEuler-24.03-LTS-SP1(3.1.4): 修复是否涉及abi变化(是/否): 1.master(3.1.4): 2.openEuler-20.03-LTS-SP4(3.1.4): 3.openEuler-22.03-LTS-SP3(3.1.4): 4.openEuler-22.03-LTS-SP4(3.1.4): 5.openEuler-24.03-LTS(3.1.4): 6.openEuler-24.03-LTS-Next(3.1.4): 7.openEuler-24.03-LTS-SP1(3.1.4): 原因说明: 1.master(3.1.4): 2.openEuler-20.03-LTS-SP4(3.1.4): 3.openEuler-22.03-LTS-SP3(3.1.4): 4.openEuler-22.03-LTS-SP4(3.1.4): 5.openEuler-24.03-LTS(3.1.4): 6.openEuler-24.03-LTS-Next(3.1.4): 7.openEuler-24.03-LTS-SP1(3.1.4):
评论 (
3
)
登录
后才可以发表评论
状态
待办的
待办的
已挂起
进行中
已完成
已拒绝
负责人
未设置
MacChen1
macchen1
负责人
协作者
+负责人
+协作者
标签
CVE/UNFIXED
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (23)
标签 (21)
master
openEuler-22.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP1
openEuler-20.03-LTS-SP4
openEuler-24.09
openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-25.03
openEuler-25.09
openEuler-23.09
openEuler-23.03
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS-Next
openEuler-20.03-LTS-SP3
openEuler-20.03-LTS-SP1
openEuler-21.09
openEuler-22.03-LTS
openEuler-22.03-LTS-Next
openEuler-22.03-LTS-SP2
openEuler-22.09
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP1-update-20241108
openEuler-20.03-LTS-SP4-update-20241108
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
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/hadoop-3.1.git
[email protected]
:src-openeuler/hadoop-3.1.git
src-openeuler
hadoop-3.1
hadoop-3.1
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册