一个git相关的cve:CVE-2024-32002

最近听说一个与自己相关的CVE, CVE-2024-32002

文章目录


前言

cve git windows hook submodule

利用submodule和hook,实现对.git目录注入hook的目标。

影响windows和mac os下的大部分git版本。


提示:以下是本篇文章正文内容,下面案例可供参考

Description

Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a .git/ directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. If symbolic link support is disabled in Git (e.g. via git config --global core.symlinks false), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.

二、PATCH

https://github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991d


总结

提示:windows下,应尽快换最新的git版本。

相关推荐
F_D_Z1 小时前
【清晰教程】查看和修改Git配置情况
git
漫谈网络2 小时前
保持本地 Git 项目副本与远程仓库完全同步
git
李天琦7 小时前
git查看commit属于那个tag
linux·git·云计算
Hoking10 小时前
CentOS7.9环境离线部署docker和docker-compose的两种方式
git·docker·容器
Clownseven10 小时前
用Git管理你的服务器配置文件与自动化脚本:版本控制、变更追溯、团队协作与安全回滚的运维之道
运维·服务器·git
F_D_Z12 小时前
【清晰教程】利用Git工具将本地项目push上传至GitHub仓库中
git·github
天天摸鱼的java工程师15 小时前
Git 分支管理规范:从理论到实战的企业级最佳实践
java·git·后端
深兰科技16 小时前
青岛市长任刚与深兰科技董事长陈海波会谈,深兰青岛项目即将进入快车道!
人工智能·git·docker·jupyter·深兰科技·青岛项目·陈海波
2401_8742751718 小时前
linux、docker、git相关操作
linux·git·docker
化作繁星1 天前
git忽略校验,强制提交
git