CVE-2022-39260 (CNNVD-202210-1260)
中文标题:
Git 缓冲区错误漏洞
英文标题:
Git vulnerable to Remote Code Execution via Heap overflow in `git shell`
漏洞描述
中文描述:
Git是一套免费、开源的分布式版本控制系统。 Git 存在安全漏洞,该漏洞源于Git错误地处理了某些符号链接。
英文描述:
Git is an open source, scalable, distributed revision control system. `git shell` is a restricted login shell that can be used to implement Git's push/pull functionality via SSH. In versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4, the function that splits the command arguments into an array improperly uses an `int` to represent the number of entries in the array, allowing a malicious actor to intentionally overflow the return value, leading to arbitrary heap writes. Because the resulting array is then passed to `execv()`, it is possible to leverage this attack to gain remote code execution on a victim machine. Note that a victim must first allow access to `git shell` as a login shell in order to be vulnerable to this attack. This problem is patched in versions 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 and users are advised to upgrade to the latest version. Disabling `git shell` access via remote logins is a viable short-term workaround.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| git | git | < 2.30.6 | - | - |
cpe:2.3:a:git:git:<_2.30.6:*:*:*:*:*:*:*
|
| git | git | > 2.31.0, < 2.31.5 | - | - |
cpe:2.3:a:git:git:>_2.31.0,_<_2.31.5:*:*:*:*:*:*:*
|
| git | git | > 2.32.0, < 2.32.4 | - | - |
cpe:2.3:a:git:git:>_2.32.0,_<_2.32.4:*:*:*:*:*:*:*
|
| git | git | > 2.33.0, < 2.33.5 | - | - |
cpe:2.3:a:git:git:>_2.33.0,_<_2.33.5:*:*:*:*:*:*:*
|
| git | git | > 2.34.0, < 2.34.5 | - | - |
cpe:2.3:a:git:git:>_2.34.0,_<_2.34.5:*:*:*:*:*:*:*
|
| git | git | > 2.34.0, < 2.35.5 | - | - |
cpe:2.3:a:git:git:>_2.34.0,_<_2.35.5:*:*:*:*:*:*:*
|
| git | git | > 2.35.0, < 2.36.3 | - | - |
cpe:2.3:a:git:git:>_2.35.0,_<_2.36.3:*:*:*:*:*:*:*
|
| git | git | > 2.37.0, < 2.37.4 | - | - |
cpe:2.3:a:git:git:>_2.37.0,_<_2.37.4:*:*:*:*:*:*:*
|
| git-scm | git | * | - | - |
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
| git-scm | git | 2.38.0 | - | - |
cpe:2.3:a:git-scm:git:2.38.0:*:*:*:*:*:*:*
|
| fedoraproject | fedora | 35 | - | - |
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
|
| fedoraproject | fedora | 36 | - | - |
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
|
| fedoraproject | fedora | 37 | - | - |
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
|
| apple | xcode | * | - | - |
cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:*
|
| debian | debian_linux | 10.0 | - | - |
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
3.1 (cna)
HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2022-39260 |
2025-11-11 15:21:33 | 2025-11-11 07:37:43 |
| NVD | nvd_CVE-2022-39260 |
2025-11-11 14:58:26 | 2025-11-11 07:45:55 |
| CNNVD | cnnvd_CNNVD-202210-1260 |
2025-11-11 15:11:02 | 2025-11-11 07:57:34 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 缓冲区错误
- cnnvd_id: 未提取 -> CNNVD-202210-1260
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 8 -> 15
- data_sources: ['cve'] -> ['cve', 'nvd']