CVE-2022-39253 (CNNVD-202210-1263)
中文标题:
Git 后置链接漏洞
英文标题:
Git subject to exposure of sensitive information via local clone of symbolic links
漏洞描述
中文描述:
Git是一套免费、开源的分布式版本控制系统。 Git存在安全漏洞,该漏洞源于Git错误地处理了某些符号链接。
英文描述:
Git is an open source, scalable, distributed revision control system. 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 are subject to exposure of sensitive information to a malicious actor. When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of the source's `$GIT_DIR/objects` directory into the destination by either creating hardlinks to the source contents, or copying them (if hardlinks are disabled via `--no-hardlinks`). A malicious actor could convince a victim to clone a repository with a symbolic link pointing at sensitive information on the victim's machine. This can be done either by having the victim clone a malicious repository on the same machine, or having them clone a malicious repository embedded as a bare repository via a submodule from any source, provided they clone with the `--recurse-submodules` option. Git does not create symbolic links in the `$GIT_DIR/objects` directory. The problem has been patched in the versions published on 2022-10-18, and backported to v2.30.x. Potential workarounds: Avoid cloning untrusted repositories using the `--local` optimization when on a shared machine, either by passing the `--no-local` option to `git clone` or cloning from a URL that uses the `file://` scheme. Alternatively, avoid cloning repositories from untrusted sources with `--recurse-submodules` or run `git config --global protocol.file.allow user`.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| git | git | < 2.30.6 | - | - |
cpe:2.3:a:git:git:<_2.30.6:*:*:*:*:*:*:*
|
| git | git | < 2.31.5 | - | - |
cpe:2.3:a:git:git:<_2.31.5:*:*:*:*:*:*:*
|
| git | git | < 2.32.4 | - | - |
cpe:2.3:a:git:git:<_2.32.4:*:*:*:*:*:*:*
|
| git | git | < 2.33.5 | - | - |
cpe:2.3:a:git:git:<_2.33.5:*:*:*:*:*:*:*
|
| git | git | < 2.34.5 | - | - |
cpe:2.3:a:git:git:<_2.34.5:*:*:*:*:*:*:*
|
| git | git | < 2.35.5 | - | - |
cpe:2.3:a:git:git:<_2.35.5:*:*:*:*:*:*:*
|
| git | git | < 2.36.3 | - | - |
cpe:2.3:a:git:git:<_2.36.3:*:*:*:*:*:*:*
|
| git | git | < 2.37.4 | - | - |
cpe:2.3:a:git:git:<_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
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
3.1 (cna)
MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2022-39253 |
2025-11-11 15:21:33 | 2025-11-11 07:37:43 |
| NVD | nvd_CVE-2022-39253 |
2025-11-11 14:58:26 | 2025-11-11 07:45:55 |
| CNNVD | cnnvd_CNNVD-202210-1263 |
2025-11-11 15:11:02 | 2025-11-11 07:57:34 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 后置链接
- cnnvd_id: 未提取 -> CNNVD-202210-1263
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 8 -> 15
- data_sources: ['cve'] -> ['cve', 'nvd']