CVE-2022-39253: Git - Sensitive Information Exposure via Symbolic Links
- Cve: CVE-2022-39253
- Name: Git - Sensitive Information Exposure via Symbolic Links
- Description: 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`.
- Impact: Attackers can access sensitive information on the victim's machine through malicious repository cloning, leading to data exposure.
- Remediation: Update to Git version 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, or 2.37.4 or later versions.
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- Epss score: 0.01481
- Epss percentile: 0.74609
- Assignee: [email protected]
- Published at: 2022-10-19T11:15:11Z
- Age in days: 1497
- Modified at: 2026-06-17T04:58:00Z
- Patch available: yes
- Public exploits total: 2
- References total: 12
- Products total: 4
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39253
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements
Cwe
| Id | Name |
|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor |
| CWE-59 | Improper Link Resolution Before File Access |
Hackerone
- Reports: 3
- Rank: 134
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/HiImDarwin/NetworkSecurityFinalProject | poc-in-github | 2023-05-15 |
| https://github.com/ssst0n3/docker-cve-2022-39253-poc | poc-in-github | 2022-12-20 |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| git-scm:git | = 2.38.0; >= 2.37.0, < 2.37.4; >= 2.36.0, < 2.36.3; >= 2.35.0, < 2.35.5; >= 2.34.0, < 2.34.5; >= 2.33.0, < 2.33.5; >= 2.32.0, < 2.32.4; >= 2.31.0, < 2.31.5; < 2.30.6 | /v1/products/git-scm/git |
| debian:debian_linux | = 10.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 37, = 36, = 35 | /v1/products/fedoraproject/fedora |
| apple:xcode | < 14.1 | /v1/products/apple/xcode |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| git/git | fix, security_advisory | yes | /v1/repositories/git/git |
| git-for-windows/git | fix | yes | /v1/repositories/git-for-windows/git |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2022-12-20
- Hackerone reports: 3
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since