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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-10-19 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2022-39253, UBUNTU-CVE-2022-39253, USN-5686-4, DEBIAN-CVE-2022-39253, CGA-2932-95r7-fv83, CGA-48hm-jm7q-g2pm, openSUSE-SU-2024:12430-1, openSUSE-SU-2024:12851-1, openSUSE-SU-2026:10987-1
- Record: https://cvemate.com/vulnerability/CVE-2022-39253 · JSON: https://cvemate.com/vulnerability/CVE-2022-39253/json

## Description

```text
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`.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 1.481%, percentile 74.827%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine docker (Alpine Linux): \< 20.10.20-r0
- alpine docker-cli-compose (Alpine Linux): \< 2.12.1-r0
- alpine git (Alpine Linux): ≥ 2.31.0, \< 2.30.6-r0 \| ≥ 2.31.0, \< 2.32.4-r0 \| ≥ 2.31.0, \< 2.34.5-r0 \| ≥ 2.31.0, \< 2.36.3-r0 \| ≥ 2.31.0, \< 2.38.1-r0 \| \< 2.30.6-r0 \| ≥ 2.32.0, \< 2.32.4-r0 \| ≥ 2.34.0, \< 2.34.5-r0 \| ≥ 2.36.0, \< 2.36.3-r0 \| ≥ 2.37.0, \< 2.38.1-r0
- chainguard git (Chainguard): \< 2.38.1-r0
- wolfi git (Wolfi): \< 2.38.1-r0
- apple xcode: \< 14.1
- debian git (Debian): \< 1:2.38.1-1
- ubuntu git (Ubuntu): \< 1:2.7.4-0ubuntu1.10+esm6 \| \< 1:2.17.1-1ubuntu0.13 \| \< 1:2.25.1-1ubuntu3.6 \| \< 1:2.34.1-1ubuntu1.5
- debian debian\_linux: 10.0
- fedoraproject fedora: 35 \| 36 \| 37
- git-scm git: \< 2.30.6 \| ≥ 2.31.0, \< 2.31.5 \| ≥ 2.32.0, \< 2.32.4 \| ≥ 2.33.0, \< 2.33.5 \| ≥ 2.34.0, \< 2.34.5 \| ≥ 2.35.0, \< 2.35.5 \| ≥ 2.36.0, \< 2.36.3 \| ≥ 2.37.0, \< 2.37.4 \| 2.38.0
- git 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
- opensuse docker-compose&distro=openSUSE Tumbleweed (openSUSE): \< 2.12.2-1.1
- opensuse perl-Git-Repository&distro=openSUSE Tumbleweed (openSUSE): \< 1.326.0-1.1
- opensuse reuse&distro=openSUSE Tumbleweed (openSUSE): \< 1.1.2-1.1

## References (first 20 of 22)

- <https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VFYXCTLOSESYIP72BUYD6ECDIMUM4WMB/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKFHE4KVD7EKS5J3KTDFVBEKU3CLXGVV/>
- <https://support.apple.com/kb/HT213496>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OHNO2FB55CPX47BAXMBWUBGWHO6N6ZZH/>
- <http://seclists.org/fulldisclosure/2022/Nov/1>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JMQWGMDLX6KTVWW5JZLVPI7ICAK72TN7/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C7B6JPKX5CGGLAHXJVQMIZNNEEB72FHD/>
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html>
- <http://www.openwall.com/lists/oss-security/2023/02/14/5>
- <https://security.gentoo.org/glsa/202312-15>
- <http://www.openwall.com/lists/oss-security/2024/05/14/2>
- <https://security.alpinelinux.org/vuln/CVE-2022-39253>
- <https://ubuntu.com/security/CVE-2022-39253>
- <https://ubuntu.com/security/notices/USN-5686-1>
- <https://ubuntu.com/security/notices/USN-5686-3>
- <https://ubuntu.com/security/notices/USN-5686-4>
- <https://www.cve.org/CVERecord?id=CVE-2022-39253>
- <https://security-tracker.debian.org/tracker/CVE-2022-39253>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39253.json>

---

Data as of 2026-12-05T02:45:49.311Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
