已开启
CVE-2023-26031 #6
AtomGit-Bot创建于  2023年11月16日
AtomGit-Bot
2023年11月16日 创建

一、漏洞信息
漏洞编号:CVE-2023-26031
漏洞归属组件:hadoop
漏洞归属的版本:3.2.1,3.3.4,3.3.6
CVSS评分:
BaseScore:7.5 High
Vector:CVSS:3.1/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/.Thisistheapaththroughwhichlibcrypto.soislocated.Thusitisispossibleforauserwithreducedprivilegestoinstallamaliciouslibcryptolibraryintoapathtowhichtheyhavewriteaccess,invokethecontainer−executorcommand,andhavetheirmodifiedlibraryexecutedasroot.IftheYARNclusterisacceptingworkfromremote(authenticated)users,andtheseuserssubmittedjobareexecutedinthephysicalhost,ratherthanacontainer,thentheCVEpermitsremoteuserstogainrootprivileges.Thefixforthevulnerabilityistorevertthechange,whichisdoneinYARN−11441https://issues.apache.org/jira/browse/YARN−11441,RevertYARN−10495.Thispatchisinhadoop−3.3.5.Todeterminewhetheraversionofcontainer−executorisvulnerable,usethereadelfcommand.IftheRUNPATHorRPATHvaluecontainstherelativepath./lib/native/thenitisatriskORIGIN/:../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/]Ifitdoesnot,thenitissafe:ORIGIN/:../lib/native/]If it does not, then it is safe: readelf -d container-executor|grep RUNPATH |RPATH 0x000000000000001d (RUNPATH)           Library runpath: [ORIGIN/]Foranat−riskversionofcontainer−executortoenableprivilegeescalation,theownermustberootandthesuidbitmustbesetORIGIN/]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-03-04 11:13:06
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2023-26031

更多参考(点击展开)
参考来源 参考链接 来源链接
https://github.com/advisories/GHSA-94jh-j374-9r3j
https://cxsecurity.com/cveshow/CVE-2023-26031/
https://security.netapp.com/advisory/ntap-20240112-0001/
https://github.com/apache/hadoop
https://www.mend.io/vulnerability-database/CVE-2023-26031
https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12
https://www.oracle.com/security-alerts/cpujul2024.html
https://www.cve.org/CVERecord?id=CVE-2023-26031
https://hadoop.apache.org/cve_list.html
https://security.netapp.com/advisory/ntap-20240112-0001
https://www.oracle.com/security-alerts/cpujan2025.html
https://nvd.nist.gov/vuln/detail/CVE-2023-26031
https://access.redhat.com/security/cve/CVE-2023-26031
https://bugzilla.redhat.com/show_bug.cgi?id=2250137
https://access.redhat.com/security/cve/cve-2023-26031
https://issues.apache.org/jira/browse/YARN-10495
https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47
https://issues.apache.org/jira/browse/YARN-11441
https://lists.apache.org/thread/q9qpdlv952gb4kphpndd5phvl7fkh71r

漏洞分析指导链接:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
其他
漏洞补丁信息:

详情(点击展开)
影响的包 修复版本 修复补丁 问题引入补丁 来源
apache/hadoop https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12.patch ljqc
apache/hadoop https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47.patch ljqc
https://github.com/apache/hadoop/commit/10e7ca481c8cd0548d903d39d8581291e533bf12 snyk
https://github.com/apache/hadoop/commit/7d3c8ef6064efd132828765e52e961977aebbf47 snyk

二、漏洞分析结构反馈
影响性分析说明:

openEuler评分:
7.5
Vector:CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
受影响版本排查(受影响/不受影响):
1.master(3.3.6):
2.openEuler-20.03-LTS-SP4(3.3.6):
3.openEuler-22.03-LTS-SP3(3.3.6):
4.openEuler-22.03-LTS-SP4(3.3.6):
5.openEuler-24.03-LTS(3.3.6):
6.openEuler-24.03-LTS-Next(3.3.6):
7.openEuler-24.03-LTS-SP1(3.3.6):
8.openEuler-24.03-LTS-SP2(3.3.6):

修复是否涉及abi变化(是/否):
1.master(3.3.6):
2.openEuler-20.03-LTS-SP4(3.3.6):
3.openEuler-22.03-LTS-SP3(3.3.6):
4.openEuler-22.03-LTS-SP4(3.3.6):
5.openEuler-24.03-LTS(3.3.6):
6.openEuler-24.03-LTS-Next(3.3.6):
7.openEuler-24.03-LTS-SP1(3.3.6):
8.openEuler-24.03-LTS-SP2(3.3.6):

原因说明:
1.master(3.3.6):
2.openEuler-20.03-LTS-SP4(3.3.6):
3.openEuler-22.03-LTS-SP3(3.3.6):
4.openEuler-22.03-LTS-SP4(3.3.6):
5.openEuler-24.03-LTS(3.3.6):
6.openEuler-24.03-LTS-Next(3.3.6):
7.openEuler-24.03-LTS-SP1(3.3.6):
8.openEuler-24.03-LTS-SP2(3.3.6):

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
2023年11月16日 评论:

@yangzhao_kl ,@wuzeyi1 ,@macchen1 ,@wenwj0
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, openEuler评分, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后cve-manager将无法正常解析填写内容.


影响性分析说明:

openEuler评分: (评分和向量)

受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP1(3.3.4):
2.openEuler-20.03-LTS-SP3(3.3.4):
3.openEuler-20.03-LTS-SP4:
4.openEuler-22.03-LTS(3.3.4):
5.openEuler-22.03-LTS-SP1(3.3.4):
6.openEuler-22.03-LTS-SP2(3.3.4):
7.openEuler-22.03-LTS-SP3:

修复是否涉及abi变化(是/否):
1.openEuler-20.03-LTS-SP1(3.3.4):
2.openEuler-20.03-LTS-SP3(3.3.4):
3.openEuler-20.03-LTS-SP4:
4.openEuler-22.03-LTS(3.3.4):
5.openEuler-22.03-LTS-SP1(3.3.4):
6.openEuler-22.03-LTS-SP2(3.3.4):
7.openEuler-22.03-LTS-SP3:


issue处理具体操作请参考:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
pr关联issue具体操作请参考:
https://gitee.com/help/articles/4142

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
2023年11月16日 评论:

Hi openMajun_admin, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: bigdata, and any of the maintainers: @yangzhao_kl , @wuzeyi1 , @macchen1 , @wenwj0

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
2023年11月16日 评论:
参考网址 关联pr 状态 补丁链接
https://nvd.nist.gov/vuln/detail/CVE-2023-26031
https://ubuntu.com/security/CVE-2023-26031NoneNonehttps://discourse.ubuntu.com/c/ubuntu-pro
https://www.opencve.io/cve/CVE-2023-26031
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2023-26031
https://security-tracker.debian.org/tracker/CVE-2023-26031

说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用CVE补丁工具。
若补丁不准确,烦请在此issue下评论 '/report-patch 参考网址 补丁链接1,补丁链接2' 反馈正确信息,便于我们不断优化工具,不胜感激。
如 /report-patch https://security-tracker.debian.org/tracker/CVE-2021-3997 https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1

likedislike
xiexing
xiexing
2023年11月24日 评论:

需升级到3.3.5版本
输入图片说明

likedislike
AtomGit-Bot
2023年11月24日 评论:

影响性分析说明:
Apache Hadoop 3.3.1-3.3.4 中的linux container-executor二进制文件中存在权限提升漏洞,本地低权限用户可利用该漏洞获得 root 权限,3.3.5版本已修复该漏洞;

openEuler评分: (评分和向量)
6
Vector:CVSS:2.0/

受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP1(3.3.4):受影响
2.openEuler-20.03-LTS-SP3(3.3.4):受影响
3.openEuler-20.03-LTS-SP4:受影响
4.openEuler-22.03-LTS(3.3.4):受影响
5.openEuler-22.03-LTS-SP1(3.3.4):受影响
6.openEuler-22.03-LTS-SP2(3.3.4):受影响
7.openEuler-22.03-LTS-SP3:受影响

修复是否涉及abi变化(是/否):
1.openEuler-20.03-LTS-SP1(3.3.4):是
2.openEuler-20.03-LTS-SP3(3.3.4):是
3.openEuler-20.03-LTS-SP4:是
4.openEuler-22.03-LTS(3.3.4):是
5.openEuler-22.03-LTS-SP1(3.3.4):是
6.openEuler-22.03-LTS-SP2(3.3.4):是
7.openEuler-22.03-LTS-SP3:是

likedislike
此处折叠了406条消息 查看更多
openeuler-ci-botopeneuler-ci-bot成员
2月6日 将 yangzhao_kl 设为负责人,移除负责人 macchen1
openeuler-ci-botopeneuler-ci-bot成员
3月10日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
3月11日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
4月30日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
5月1日 修改了issue 的描述