CVE-2025-48384 (CNNVD-202507-1041)

HIGH
中文标题:
Git 安全漏洞
英文标题:
Git allows arbitrary code execution through broken config quoting
CVSS分数: 8.1
发布时间: 2025-07-08 18:23:48
漏洞类型: 其他
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

Git是Git开源的一套免费、开源的分布式版本控制系统。 Git存在安全漏洞,该漏洞源于在处理配置值时尾随回车符的处理不当,可能使子模块被错误检出到由符号链接指向的钩子目录,意外执行其中的可执行脚本。

英文描述:

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1.

CWE类型:
CWE-59 CWE-436
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
git git < 2.43.7 - - cpe:2.3:a:git:git:<_2.43.7:*:*:*:*:*:*:*
git git >= 2.44.0-rc0, < 2.44.4 - - cpe:2.3:a:git:git:>=_2.44.0-rc0,_<_2.44.4:*:*:*:*:*:*:*
git git >= 2.45.0-rc0, < 2.45.4 - - cpe:2.3:a:git:git:>=_2.45.0-rc0,_<_2.45.4:*:*:*:*:*:*:*
git git >= 2.46.0-rc0, < 2.46.4 - - cpe:2.3:a:git:git:>=_2.46.0-rc0,_<_2.46.4:*:*:*:*:*:*:*
git git >= 2.47.0-rc0, < 2.47.3 - - cpe:2.3:a:git:git:>=_2.47.0-rc0,_<_2.47.3:*:*:*:*:*:*:*
git git >= 2.48.0-rc0, < 2.48.2 - - cpe:2.3:a:git:git:>=_2.48.0-rc0,_<_2.48.2:*:*:*:*:*:*:*
git git >= 2.49.0-rc0, < 2.49.1 - - cpe:2.3:a:git:git:>=_2.49.0-rc0,_<_2.49.1:*:*:*:*:*:*:*
git git >= 2.50.0-rc0, < 2.50.1 - - cpe:2.3:a:git:git:>=_2.50.0-rc0,_<_2.50.1:*:*:*:*:*:*:*
git-scm git * - - cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
debian debian_linux 11.0 - - cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
apple xcode * - - cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/git/git/security/advisories/GHSA-vwqx-4fm8-6qc9 x_refsource_CONFIRM
cve.org
访问
af854a3a-2127-422b-91ae-364da2661108 OTHER
nvd.nist.gov
访问
af854a3a-2127-422b-91ae-364da2661108 OTHER
nvd.nist.gov
访问
af854a3a-2127-422b-91ae-364da2661108 OTHER
nvd.nist.gov
访问
134c704f-9b21-4f2e-91b3-4a467353bcc0 OTHER
nvd.nist.gov
访问
CVSS评分详情
3.1 (cna)
HIGH
8.1
CVSS向量: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
机密性
HIGH
完整性
HIGH
可用性
HIGH
时间信息
发布时间:
2025-07-08 18:23:48
修改时间:
2025-11-04 21:11:00
创建时间:
2025-11-11 15:40:36
更新时间:
2025-11-11 15:59:58
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-48384 2025-11-11 15:23:24 2025-11-11 07:40:36
NVD nvd_CVE-2025-48384 2025-11-11 15:00:55 2025-11-11 07:48:24
CNNVD cnnvd_CNNVD-202507-1041 2025-11-11 15:12:50 2025-11-11 07:59:58
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:59:58
vulnerability_type: 未提取 → 其他; cnnvd_id: 未提取 → CNNVD-202507-1041; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 其他
  • cnnvd_id: 未提取 -> CNNVD-202507-1041
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:24
affected_products_count: 8 → 11; references_count: 1 → 5; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • affected_products_count: 8 -> 11
  • references_count: 1 -> 5
  • data_sources: ['cve'] -> ['cve', 'nvd']