CVE-2022-39260 (CNNVD-202210-1260)

HIGH
中文标题:
Git 缓冲区错误漏洞
英文标题:
Git vulnerable to Remote Code Execution via Heap overflow in `git shell`
CVSS分数: 8.5
发布时间: 2022-10-19 00:00:00
漏洞类型: 缓冲区错误
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

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类型:
CWE-787 CWE-122
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 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:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
无标题 OTHER
cve.org
访问
FEDORA-2022-8b58806840 vendor-advisory
cve.org
访问
无标题 OTHER
cve.org
访问
FEDORA-2022-53aadd995f vendor-advisory
cve.org
访问
20221107 APPLE-SA-2022-11-01-1 Xcode 14.1 mailing-list
cve.org
访问
FEDORA-2022-fb088df94c vendor-advisory
cve.org
访问
[debian-lts-announce] 20221213 [SECURITY] [DLA 3239-1] git security update mailing-list
cve.org
访问
GLSA-202312-15 vendor-advisory
cve.org
访问
CVSS评分详情
3.1 (cna)
HIGH
8.5
CVSS向量: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
机密性
HIGH
完整性
HIGH
可用性
HIGH
时间信息
发布时间:
2022-10-19 00:00:00
修改时间:
2024-08-03 12:00:43
创建时间:
2025-11-11 15:37:43
更新时间:
2025-11-11 15:57:34
利用信息
暂无可利用代码信息
数据源详情
数据源 记录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
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:57:34
vulnerability_type: 未提取 → 缓冲区错误; cnnvd_id: 未提取 → CNNVD-202210-1260; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 缓冲区错误
  • cnnvd_id: 未提取 -> CNNVD-202210-1260
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:45:55
affected_products_count: 8 → 15; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • affected_products_count: 8 -> 15
  • data_sources: ['cve'] -> ['cve', 'nvd']