13 Star 9 Fork 57

src-openEuler/openssh

CVE-2023-38408

已完成
CVE和安全问题 拥有者
创建于  
2023-07-20 06:39

一、漏洞信息
漏洞编号:CVE-2023-38408
漏洞归属组件:openssh
漏洞归属的版本:8.2p1,8.8p1,9.1p1
CVSS V3.0分值:
BaseScore:9.8 Critical
Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
漏洞简述:
The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.
漏洞公开时间:2023-07-20 11:15:00
漏洞创建时间:2023-07-20 06:39:35
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2023-38408

更多参考(点击展开)
参考来源 参考链接 来源链接
suse_bugzilla http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-38408 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://bugs.chromium.org/p/project-zero/issues/detail?id=1009 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://bugs.chromium.org/p/project-zero/issues/detail?id=2266 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://www.cve.org/CVERecord?id=CVE-2023-38408 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla http://www.openwall.com/lists/oss-security/2023/07/19/9 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://seclists.org/oss-sec/2023/q3/49 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://www.openssh.com/security.html https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://www.qualys.com/research/security-advisories/ https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://news.ycombinator.com/item?id=36790196 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://security.gentoo.org/glsa/202307-01 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://www.openssh.com/txt/release-9.3p2 https://bugzilla.suse.com/show_bug.cgi?id=1213504
suse_bugzilla https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt https://bugzilla.suse.com/show_bug.cgi?id=1213504
redhat_bugzilla https://access.redhat.com/errata/RHSA-2023:4329 https://bugzilla.redhat.com/show_bug.cgi?id=2224173
redhat_bugzilla https://access.redhat.com/errata/RHSA-2023:4381 https://bugzilla.redhat.com/show_bug.cgi?id=2224173
redhat_bugzilla https://access.redhat.com/errata/RHSA-2023:4383 https://bugzilla.redhat.com/show_bug.cgi?id=2224173
redhat_bugzilla https://access.redhat.com/errata/RHSA-2023:4384 https://bugzilla.redhat.com/show_bug.cgi?id=2224173
redhat_bugzilla https://access.redhat.com/errata/RHSA-2023:4382 https://bugzilla.redhat.com/show_bug.cgi?id=2224173
redhat_bugzilla https://access.redhat.com/errata/RHSA-2023:4412 https://bugzilla.redhat.com/show_bug.cgi?id=2224173
redhat_bugzilla https://access.redhat.com/errata/RHSA-2023:4413 https://bugzilla.redhat.com/show_bug.cgi?id=2224173
redhat_bugzilla https://access.redhat.com/errata/RHSA-2023:4419 https://bugzilla.redhat.com/show_bug.cgi?id=2224173
debian https://security-tracker.debian.org/tracker/CVE-2023-38408
gentoo https://security.gentoo.org/glsa/202307-01
cve_search https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8
cve_search https://www.openssh.com/txt/release-9.3p2
cve_search https://www.qualys.com/2023/07/19/cve-2023-38408/rce-openssh-forwarded-ssh-agent.txt
cve_search https://blog.qualys.com/vulnerabilities-threat-research/2023/07/19/cve-2023-38408-remote-code-execution-in-opensshs-forwarded-ssh-agent
cve_search https://news.ycombinator.com/item?id=36790196
cve_search https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca
cve_search https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d
cve_search https://www.openssh.com/security.html
cve_search https://security.gentoo.org/glsa/202307-01
cve_search http://www.openwall.com/lists/oss-security/2023/07/20/1
cve_search http://www.openwall.com/lists/oss-security/2023/07/20/2
cve_search http://packetstormsecurity.com/files/173661/OpenSSH-Forwarded-SSH-Agent-Remote-Code-Execution.html
cve_search https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RAXVQS6ZYTULFAK3TEJHRLKZALJS3AOU/
cve_search https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CEBTJJINE2I3FHAUKKNQWMFGYMLSMWKQ/

漏洞分析指导链接:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
openBrain开源漏洞感知系统
漏洞补丁信息:

详情(点击展开)
影响的包 修复版本 修复补丁 问题引入补丁 来源
https://github.com/openbsd/src/commit/7bc29a9d5cd697290aa056e94ecee6253d3425f8 suse_bugzilla
https://github.com/openbsd/src/commit/f03a4faa55c4ce0818324701dadbf91988d7351d suse_bugzilla
https://github.com/openbsd/src/commit/f8f5a6b003981bb824329dc987d101977beda7ca suse_bugzilla

二、漏洞分析结构反馈
影响性分析说明:
该漏洞仅涉及openssh提供的ssh-agent功能。当系统中使用了ssh-agent功能,此漏洞使攻击者能够控制服务器上的转发代理套接字,并能够写入客户端主机的文件系统,从而使用运行ssh-agent的用户的权限执行任意代码。ssh-agent中的PKCS#11功能的搜索路径不够可靠,如果代理被转发到攻击者控制的系统,则会导致任意代码执行(/usr/lib中的代码加载到ssh代理中不一定安全)。
openEuler评分:
7.5
Vector:CVSS:2.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP1(8.2p1):受影响
2.openEuler-20.03-LTS-SP3(8.2p1):受影响
3.openEuler-22.03-LTS(8.8p1):受影响
4.openEuler-22.03-LTS-SP1(8.8p1):受影响
5.openEuler-22.03-LTS-SP2(8.8p1):受影响

修复是否涉及abi变化(是/否):
1.openEuler-20.03-LTS-SP1(8.2p1):否
2.openEuler-20.03-LTS-SP3(8.2p1):否
3.openEuler-22.03-LTS(8.8p1):否
4.openEuler-22.03-LTS-SP1(8.8p1):否
5.openEuler-22.03-LTS-SP2(8.8p1):否

三、漏洞修复
安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2023-1480

评论 (13)

openeuler-ci-bot 创建了CVE和安全问题 2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
展开全部操作日志

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


影响性分析说明:

openEuler评分: (评分和向量)

受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP1(8.2p1):
2.openEuler-20.03-LTS-SP3(8.2p1):
3.openEuler-22.03-LTS(8.8p1):
4.openEuler-22.03-LTS-SP1(8.8p1):
5.openEuler-22.03-LTS-SP2(8.8p1):

修复是否涉及abi变化(是/否):
1.openEuler-20.03-LTS-SP1(8.2p1):
2.openEuler-20.03-LTS-SP3(8.2p1):
3.openEuler-22.03-LTS(8.8p1):
4.openEuler-22.03-LTS-SP1(8.8p1):
5.openEuler-22.03-LTS-SP2(8.8p1):


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

Hi openeuler-ci-bot, 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: Networking, and any of the maintainers: @seuzw , @MrRlu , @kircher , @gebidelidaye , @zengwefeng , @robertxw , @sunsuwan

openeuler-ci-bot 添加了
 
sig/Networking
标签
2年前
参考网址 关联pr 状态 补丁链接
https://nvd.nist.gov/vuln/detail/CVE-2023-38408
https://ubuntu.com/security/CVE-2023-38408NoneNonehttps://github.com/openssh/openssh-portable/commit/892506b13654301f69f9545f48213fc210e5c5cc
https://github.com/openssh/openssh-portable/commit/1f2731f5d7a8f8a8385c6031667ed29072c0d92a
https://github.com/openssh/openssh-portable/commit/29ef8a04866ca14688d5b7fed7b8b9deab851f77
https://github.com/openssh/openssh-portable/commit/099cdf59ce1e72f55d421c8445bf6321b3004755
https://discourse.ubuntu.com/c/ubuntu-pro
https://www.opencve.io/cve/CVE-2023-38408
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2023-38408
https://security-tracker.debian.org/tracker/CVE-2023-38408NoneNonehttps://github.com/openssh/openssh-portable/commit/892506b13654301f69f9545f48213fc210e5c5cc
https://github.com/openssh/openssh-portable/commit/1f2731f5d7a8f8a8385c6031667ed29072c0d92a
https://github.com/openssh/openssh-portable/commit/29ef8a04866ca14688d5b7fed7b8b9deab851f77
https://github.com/openssh/openssh-portable/commit/099cdf59ce1e72f55d421c8445bf6321b3004755
http://www.cnnvd.org.cn/web/vulnerability/queryLds.tag?qcvCnnvdid=CVE-2023-38408

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

openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前

影响性分析说明:该漏洞仅涉及openssh提供的ssh-agent功能。当系统中使用了ssh-agent功能,此漏洞使攻击者能够控制服务器上的转发代理套接字,并能够写入客户端主机的文件系统,从而使用运行ssh-agent的用户的权限执行任意代码。ssh-agent中的PKCS#11功能的搜索路径不够可靠,如果代理被转发到攻击者控制的系统,则会导致任意代码执行(/usr/lib中的代码加载到ssh代理中不一定安全)。

openEuler评分:
BaseScore:7.5 high
Vector:CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP1(8.2p1):受影响
2.openEuler-20.03-LTS-SP3(8.2p1):受影响
3.openEuler-22.03-LTS(8.8p1):受影响
4.openEuler-22.03-LTS-SP1(8.8p1):受影响
5.openEuler-22.03-LTS-SP2(8.8p1):受影响

修复是否涉及abi变化(是/否):
1.openEuler-20.03-LTS-SP1(8.2p1):否
2.openEuler-20.03-LTS-SP3(8.2p1):否
3.openEuler-22.03-LTS(8.8p1):否
4.openEuler-22.03-LTS-SP1(8.8p1):否
5.openEuler-22.03-LTS-SP2(8.8p1):否

openeuler-ci-bot 修改了描述 2年前

@seuzw 经过 cve-manager 解析, 已分析的内容如下表所示:

状态 需分析 内容
已分析 1.影响性分析说明 该漏洞仅涉及openssh提供的ssh-agent功能。当系统中使用了ssh-agent功能,此漏洞使攻击者能够控制服务器上的转发代理套接字,并能够写入客户端主机的文件系统,从而使用运行ssh-agent的用户的权限执行任意代码。ssh-agent中的PKCS#11功能的搜索路径不够可靠,如果代理被转发到攻击者控制的系统,则会导致任意代码执行(/usr/lib中的代码加载到ssh代理中不一定安全)。
已分析 2.openEulerScore 7.5
已分析 3.openEulerVector AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
已分析 4.受影响版本排查 openEuler-20.03-LTS-SP1:受影响,openEuler-20.03-LTS-SP3:受影响,openEuler-22.03-LTS:受影响,openEuler-22.03-LTS-SP1:受影响,openEuler-master:受影响
已分析 5.修复是否涉及abi变化 openEuler-20.03-LTS-SP1:否,openEuler-20.03-LTS-SP3:否,openEuler-22.03-LTS:否,openEuler-22.03-LTS-SP1:否

请确认分析内容的准确性, 确认无误后, 您可以进行后续步骤, 否则您可以继续分析.

openeuler-ci-bot 修改了描述 2年前
renmingshuai 通过合并 Pull Request !213: fix CVE-2023-38408任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Networking
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Networking
标签
2年前
renmingshuai 通过合并 Pull Request !212: fix CVE-2023-38408任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Networking
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Networking
标签
2年前
renmingshuai 通过合并 Pull Request !210: fix CVE-2023-38408任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Networking
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Networking
标签
2年前
renmingshuai 通过合并 Pull Request !214: fix CVE-2023-38408 and set ssh default config任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Networking
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Networking
标签
2年前
renmingshuai 通过合并 Pull Request !211: fix CVE-2023-38408任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Networking
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Networking
标签
2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-sync-bot 通过合并 Pull Request !215: [sync] PR-211: fix CVE-2023-38408任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Networking
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Networking
标签
2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
kircher 任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Networking
标签
2年前
openeuler-ci-bot 添加了
 
CVE/FIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Networking
标签
2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 计划开始日期设置为2023-07-27 2年前
openeuler-ci-bot 计划截止日期设置为2023-08-10 2年前
openeuler-ci-bot 优先级设置为严重 2年前
openeuler-ci-bot 移除了
 
CVE/FIXED
标签
5个月前
openeuler-ci-bot 移除了
 
sig/Networking
标签
5个月前
openeuler-ci-bot 添加了
 
CVE/UNAFFECTED
标签
5个月前
openeuler-ci-bot 添加了
 
sig/Networking
标签
5个月前

登录 后才可以发表评论

状态
负责人
项目
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
里程碑
分支
参与者(2)
5329419 openeuler ci bot 1632792936 renmingshuai-renmingshuai
1
https://gitee.com/src-openeuler/openssh.git
git@gitee.com:src-openeuler/openssh.git
src-openeuler
openssh
openssh

搜索帮助