CVE-2025-48384 (CNNVD-202507-1041)
中文标题:
Git 安全漏洞
英文标题:
Git allows arbitrary code execution through broken config quoting
漏洞描述
中文描述:
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类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | 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:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
nvd.nist.gov
nvd.nist.gov
nvd.nist.gov
nvd.nist.gov
CVSS评分详情
3.1 (cna)
HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
时间信息
利用信息
数据源详情
| 数据源 | 记录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 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 其他
- cnnvd_id: 未提取 -> CNNVD-202507-1041
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 8 -> 11
- references_count: 1 -> 5
- data_sources: ['cve'] -> ['cve', 'nvd']