# CVE-2022-39253: Git subject to exposure of sensitive information via local clone of symbolic links

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.87% (percentile 57, 2026-11-26)
- **CWE:** CWE-200
- **Published:** 2022-10-19T00:00:00.000Z
- **Modified:** 2026-06-17T04:58:00.250Z

## Who should check

- Anyone running git \< 2.30.6; \< 2.31.5; \< 2.32.4; \< 2.33.5; \< 2.34.5; \< 2.35.5; \< 2.36.3; \< 2.37.4

## 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\`.

## Affected and fixed versions

- git: \< 2.30.6; \< 2.31.5; \< 2.32.4; \< 2.33.5; \< 2.34.5; \< 2.35.5; \< 2.36.3; \< 2.37.4 (cvelist)

## Mitigation

- Upgrade git to 2.37.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-39253. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-39253.md
Affected: git < 2.30.6; < 2.31.5; < 2.32.4; < 2.33.5; < 2.34.5; < 2.35.5; < 2.36.3; < 2.37.4
Fixed in: git 2.30.6, git 2.31.5, git 2.32.4, git 2.33.5, git 2.34.5, git 2.35.5, git 2.36.3, git 2.37.4

Steps:
1. Search this machine and project for git: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-39253 being exploited?

There is no confirmed exploitation: CVE-2022-39253 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.87% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-39253?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-39253?

git \< 2.30.6; \< 2.31.5; \< 2.32.4; \< 2.33.5; \< 2.34.5; \< 2.35.5; \< 2.36.3; \< 2.37.4.

### Is there a fix for CVE-2022-39253?

Yes. Fixed in git 2.30.6, git 2.31.5, git 2.32.4, git 2.33.5, git 2.34.5, git 2.35.5, git 2.36.3, git 2.37.4. Upgrade git to 2.37.4 or later.

### How do I check if I'm affected by CVE-2022-39253?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VFYXCTLOSESYIP72BUYD6ECDIMUM4WMB/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKFHE4KVD7EKS5J3KTDFVBEKU3CLXGVV/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OHNO2FB55CPX47BAXMBWUBGWHO6N6ZZH/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JMQWGMDLX6KTVWW5JZLVPI7ICAK72TN7/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C7B6JPKX5CGGLAHXJVQMIZNNEEB72FHD/>
- vendor: <https://security.gentoo.org/glsa/202312-15>
- other: <https://support.apple.com/kb/HT213496>
- other: <http://seclists.org/fulldisclosure/2022/Nov/1>
- other: <https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html>
- other: <http://www.openwall.com/lists/oss-security/2023/02/14/5>
- other: <http://www.openwall.com/lists/oss-security/2024/05/14/2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-39253>

HTML: <https://flawdb.com/CVE-2022-39253> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-39253>
