CVE-2022-24765 (CNNVD-202204-2943)

MEDIUM
中文标题:
Git for Windows 代码问题漏洞
英文标题:
Uncontrolled search for the Git directory in Git for Windows
CVSS分数: 6.0
发布时间: 2022-04-12 00:00:00
漏洞类型: 代码问题
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

Git for Windows是Git groups的用于 Windows 的 Git。 Git for Windows 存在代码问题漏洞,该漏洞源于在多用户计算机上不受信任的各方对同一硬盘具有写访问权限。

英文描述:

Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\.git\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\Users` if the user profile is located in `C:\Users\my-user-name`.

CWE类型:
CWE-427
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
git-for-windows git < 2.35.2 - - cpe:2.3:a:git-for-windows:git:<_2.35.2:*:*:*:*:*:*:*
git-scm git * - - cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
fedoraproject fedora 34 - - cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
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
访问
无标题 OTHER
cve.org
访问
无标题 OTHER
cve.org
访问
[oss-security] 20220412 git v2.35.2 and friends for CVE-2022-24765 mailing-list
cve.org
访问
FEDORA-2022-e99ae504f5 vendor-advisory
cve.org
访问
FEDORA-2022-3759ebabd2 vendor-advisory
cve.org
访问
FEDORA-2022-2fec5f30be vendor-advisory
cve.org
访问
无标题 OTHER
cve.org
访问
20220516 APPLE-SA-2022-05-16-8 Xcode 13.4 mailing-list
cve.org
访问
FEDORA-2022-dfd7e7fc0e vendor-advisory
cve.org
访问
FEDORA-2022-2a5de7cb8b vendor-advisory
cve.org
访问
[debian-lts-announce] 20221213 [SECURITY] [DLA 3239-1] git security update mailing-list
cve.org
访问
FEDORA-2023-470c7ea49e vendor-advisory
cve.org
访问
FEDORA-2023-e3c8abd37e vendor-advisory
cve.org
访问
FEDORA-2023-1068309389 vendor-advisory
cve.org
访问
FEDORA-2023-3ec32f6d4e vendor-advisory
cve.org
访问
GLSA-202312-15 vendor-advisory
cve.org
访问
CVSS评分详情
3.1 (cna)
MEDIUM
6.0
CVSS向量: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
机密性
HIGH
完整性
HIGH
可用性
NONE
时间信息
发布时间:
2022-04-12 00:00:00
修改时间:
2025-07-24 03:55:38
创建时间:
2025-11-11 15:37:22
更新时间:
2025-11-11 15:57:14
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2022-24765 2025-11-11 15:21:19 2025-11-11 07:37:22
NVD nvd_CVE-2022-24765 2025-11-11 14:58:16 2025-11-11 07:45:38
CNNVD cnnvd_CNNVD-202204-2943 2025-11-11 15:10:52 2025-11-11 07:57:14
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:57:14
vulnerability_type: 未提取 → 代码问题; cnnvd_id: 未提取 → CNNVD-202204-2943; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 代码问题
  • cnnvd_id: 未提取 -> CNNVD-202204-2943
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:45:38
affected_products_count: 1 → 8; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • affected_products_count: 1 -> 8
  • data_sources: ['cve'] -> ['cve', 'nvd']