130 Star 0 Fork 55

src-openEuler / rust

 / 详情

CVE-2024-24577

已完成
CVE和安全问题
创建于  
2024-02-07 14:46

一、漏洞信息
漏洞编号:CVE-2024-24577
漏洞归属组件:rust
漏洞归属的版本:1.29.1,1.45.2,1.51.0,1.53.0,1.57.0,1.58.1,1.60.0,1.64.0,1.67.1,1.68.0,1.69.0,1.70.0,1.71.0,1.71.1,1.74.0
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
漏洞简述:
libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Using well-crafted inputs to git_index_add can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the has_dir_name function in src/libgit2/index.c, which frees an entry that should not be freed. The freed entry is later used and overwritten with potentially bad actor-controlled data leading to controlled heap corruption. Depending on the application that uses libgit2, this could lead to arbitrary code execution. This issue has been patched in version 1.6.5 and 1.7.2.
漏洞公开时间:2024-02-07 06:16:15
漏洞创建时间:2024-02-07 14:46:22
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2024-24577

更多参考(点击展开)
参考来源 参考链接 来源链接
security-advisories.github.com https://github.com/libgit2/libgit2/releases/tag/v1.6.5
security-advisories.github.com https://github.com/libgit2/libgit2/releases/tag/v1.7.2
security-advisories.github.com https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8
security-advisories.github.com https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4M3P7WIEPXNRLBINQRJFXUSTNKBCHYC7/
security-advisories.github.com https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7CNDW3PF6NHO7OXNM5GN6WSSGAMA7MZE/
security-advisories.github.com https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S635BGHHZUMRPI7QOXOJ45QHDD5FFZ3S/
security-advisories.github.com https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z6MXOX7I43OWNN7R6M54XLG6U5RXY244/
security-advisories.github.com https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGNHOEE2RBLH7KCJUPUNYG4CDTW4HTBT/
suse_bugzilla http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-24577 https://bugzilla.suse.com/show_bug.cgi?id=1219660
suse_bugzilla https://github.com/libgit2/libgit2/releases/tag/v1.6.5 https://bugzilla.suse.com/show_bug.cgi?id=1219660
suse_bugzilla https://github.com/libgit2/libgit2/releases/tag/v1.7.2 https://bugzilla.suse.com/show_bug.cgi?id=1219660
suse_bugzilla https://www.cve.org/CVERecord?id=CVE-2024-24577 https://bugzilla.suse.com/show_bug.cgi?id=1219660
suse_bugzilla https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8 https://bugzilla.suse.com/show_bug.cgi?id=1219660
suse_bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=2263095 https://bugzilla.suse.com/show_bug.cgi?id=1219660
redhat_bugzilla https://github.com/libgit2/libgit2/releases/tag/v1.6.5 https://bugzilla.redhat.com/show_bug.cgi?id=2263095
redhat_bugzilla https://github.com/libgit2/libgit2/releases/tag/v1.7.2 https://bugzilla.redhat.com/show_bug.cgi?id=2263095
redhat_bugzilla https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8 https://bugzilla.redhat.com/show_bug.cgi?id=2263095
cve_search https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8
cve_search https://github.com/libgit2/libgit2/releases/tag/v1.6.5
cve_search https://github.com/libgit2/libgit2/releases/tag/v1.7.2
cve_search https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S635BGHHZUMRPI7QOXOJ45QHDD5FFZ3S/
cve_search https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4M3P7WIEPXNRLBINQRJFXUSTNKBCHYC7/
cve_search https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7CNDW3PF6NHO7OXNM5GN6WSSGAMA7MZE/
cve_search https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z6MXOX7I43OWNN7R6M54XLG6U5RXY244/
cve_search https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGNHOEE2RBLH7KCJUPUNYG4CDTW4HTBT/
snyk https://github.com/libgit2/libgit2/commit/487af0cf6687dc48b0a960fa2f39894e2d84d77b https://security.snyk.io/vuln/SNYK-UNMANAGED-LIBGIT2LIBGIT2-6233822
snyk https://github.com/libgit2/libgit2/commit/eb4c1716cd92bf56f2770653a915d5fc01eab8f3 https://security.snyk.io/vuln/SNYK-UNMANAGED-LIBGIT2LIBGIT2-6233822
snyk https://github.com/libgit2/libgit2/releases/tag/v1.6.5 https://security.snyk.io/vuln/SNYK-UNMANAGED-LIBGIT2LIBGIT2-6233822
snyk https://github.com/libgit2/libgit2/releases/tag/v1.7.2 https://security.snyk.io/vuln/SNYK-UNMANAGED-LIBGIT2LIBGIT2-6233822
snyk https://bugzilla.redhat.com/show_bug.cgi?id=2263095 https://security.snyk.io/vuln/SNYK-UNMANAGED-LIBGIT2LIBGIT2-6233822
snyk https://github.com/rust-lang/git2-rs/commit/9e57876be78924c1e5f3f268bb599e3981fe58bb https://security.snyk.io/vuln/SNYK-RUST-LIBGIT2SYS-6249445
snyk https://github.com/libgit2/libgit2/commit/487af0cf6687dc48b0a960fa2f39894e2d84d77b https://security.snyk.io/vuln/SNYK-RUST-LIBGIT2SYS-6249445
snyk https://github.com/libgit2/libgit2/commit/eb4c1716cd92bf56f2770653a915d5fc01eab8f3 https://security.snyk.io/vuln/SNYK-RUST-LIBGIT2SYS-6249445
snyk https://github.com/libgit2/libgit2/releases/tag/v1.6.5 https://security.snyk.io/vuln/SNYK-RUST-LIBGIT2SYS-6249445
snyk https://github.com/libgit2/libgit2/releases/tag/v1.7.2 https://security.snyk.io/vuln/SNYK-RUST-LIBGIT2SYS-6249445
snyk https://bugzilla.redhat.com/show_bug.cgi?id=2263095 https://security.snyk.io/vuln/SNYK-RUST-LIBGIT2SYS-6249445
security-advisories.github.com https://github.com/libgit2/libgit2/releases/tag/v1.6.5
security-advisories.github.com https://github.com/libgit2/libgit2/releases/tag/v1.7.2
security-advisories.github.com https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8

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

详情(点击展开)
影响的包 修复版本 修复补丁 问题引入补丁 来源
https://github.com/libgit2/libgit2/commit/487af0cf6687dc48b0a960fa2f39894e2d84d77b snyk
https://github.com/libgit2/libgit2/commit/eb4c1716cd92bf56f2770653a915d5fc01eab8f3 snyk
https://github.com/rust-lang/git2-rs/commit/9e57876be78924c1e5f3f268bb599e3981fe58bb snyk
https://github.com/libgit2/libgit2/releases/tag/v1.6.5 nvd
https://github.com/libgit2/libgit2/releases/tag/v1.7.2 nvd
https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8 nvd

二、漏洞分析结构反馈
影响性分析说明:
libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Using well-crafted inputs to git_index_add can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the has_dir_name function in src/libgit2/index.c, which frees an entry that should not be freed. The freed entry is later used and overwritten with potentially bad actor-controlled data leading to controlled heap corruption. Depending on the application that uses libgit2, this could lead to arbitrary code execution. This issue has been patched in version 1.6.5 and 1.7.2.
openEuler评分:
9.8
Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP1(1.51.0):受影响
2.openEuler-20.03-LTS-SP4:受影响
3.openEuler-22.03-LTS(1.51.0):受影响
4.openEuler-22.03-LTS-SP1(1.60.0):受影响
5.openEuler-22.03-LTS-SP2(1.64.0):受影响
6.openEuler-22.03-LTS-SP3(1.64.0):受影响
7.master(1.53.0):受影响
8.openEuler-22.03-LTS-Next(1.51.0):受影响

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

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

评论 (6)

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

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: sig-Rust, and any of the maintainers: @jingxiaolu , @pwang7 , @ZhiGang , @blackanger , @wk333 , @山找海味 , @mdche , @Admin

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


影响性分析说明:

openEuler评分: (评分和向量)

受影响版本排查(受影响/不受影响):
1.master(1.53.0):
2.openEuler-20.03-LTS-SP1(1.51.0):
3.openEuler-20.03-LTS-SP4:
4.openEuler-22.03-LTS(1.51.0):
5.openEuler-22.03-LTS-Next(1.51.0):
6.openEuler-22.03-LTS-SP1(1.60.0):
7.openEuler-22.03-LTS-SP2(1.64.0):
8.openEuler-22.03-LTS-SP3(1.64.0):

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


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

openeuler-ci-bot 添加了
 
sig/sig-Rust
标签
参考网址 关联pr 状态 补丁链接
https://nvd.nist.gov/vuln/detail/CVE-2024-24577
https://ubuntu.com/security/CVE-2024-24577 None None https://discourse.ubuntu.com/c/ubuntu-pro
https://www.opencve.io/cve/CVE-2024-24577
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2024-24577
https://security-tracker.debian.org/tracker/CVE-2024-24577

说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用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 修改了描述
openeuler-ci-bot 计划开始日期设置为2024-02-08
openeuler-ci-bot 计划截止日期设置为2024-02-22
openeuler-ci-bot 优先级设置为主要
openeuler-ci-bot 修改了描述
openeuler-ci-bot 负责人设置为mdche
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述

影响性分析说明:
libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Using well-crafted inputs to git_index_add can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the has_dir_name function in src/libgit2/index.c, which frees an entry that should not be freed. The freed entry is later used and overwritten with potentially bad actor-controlled data leading to controlled heap corruption. Depending on the application that uses libgit2, this could lead to arbitrary code execution. This issue has been patched in version 1.6.5 and 1.7.2.

openEuler评分:
BaseScore:9.8 Critical
Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

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

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

状态 需分析 内容
已分析 1.影响性分析说明 libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Using well-crafted inputs to git_index_add can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the has_dir_name function in src/libgit2/index.c, which frees an entry that should not be freed. The freed entry is later used and overwritten with potentially bad actor-controlled data leading to controlled heap corruption. Depending on the application that uses libgit2, this could lead to arbitrary code execution. This issue has been patched in version 1.6.5 and 1.7.2.
已分析 2.openEulerScore 9.8
已分析 3.openEulerVector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
已分析 4.受影响版本排查 openEuler-20.03-LTS-SP1:受影响,openEuler-20.03-LTS-SP4:受影响,openEuler-22.03-LTS:受影响,openEuler-22.03-LTS-SP1:受影响,openEuler-22.03-LTS-SP2:受影响,openEuler-22.03-LTS-SP3:受影响,master:受影响,openEuler-22.03-LTS-Next:受影响
已分析 5.修复是否涉及abi变化 openEuler-20.03-LTS-SP1:否,openEuler-20.03-LTS-SP4:否,openEuler-22.03-LTS:否,openEuler-22.03-LTS-SP1:否,openEuler-22.03-LTS-SP2:否,openEuler-22.03-LTS-SP3:否,master:否,openEuler-22.03-LTS-Next:否

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

openeuler-ci-bot 修改了描述
openeuler-sync-bot 通过src-openeuler/rust Pull Request !109任务状态待办的 修改为已完成

@blackanger ,@Admin ,@山找海味 ,@pwang7 ,@ZhiGang ,@jingxiaolu ,@small_leek ,@openeuler-sync-bot
关闭issue前,需要将受影响的分支在合并pr时关联上当前issue编号: #I91FXB:CVE-2024-24577
受影响分支: openEuler-22.03-LTS-Next
具体操作参考: https://gitee.com/help/articles/4142

openeuler-ci-bot 任务状态已完成 修改为待办的
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
openeuler-ci-bot 移除了
 
sig/sig-Rust
标签
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
openeuler-ci-bot 添加了
 
sig/sig-Rust
标签
openeuler-sync-bot 通过src-openeuler/rust Pull Request !110任务状态待办的 修改为已完成
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
openeuler-ci-bot 移除了
 
sig/sig-Rust
标签
openeuler-ci-bot 添加了
 
CVE/FIXED
标签
openeuler-ci-bot 添加了
 
sig/sig-Rust
标签
openeuler-ci-bot 计划截止日期2024-02-22 修改为2024-02-15
openeuler-ci-bot 优先级主要 修改为严重
openeuler-ci-bot 修改了描述

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/rust.git
git@gitee.com:src-openeuler/rust.git
src-openeuler
rust
rust

搜索帮助