SecurityContext

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

IdName
CWE-200Exposure of Sensitive Information to an Unauthorized Actor
CWE-59Improper Link Resolution Before File Access

Hackerone

  • Reports: 3
  • Rank: 134

Public exploits

UrlSourceAdded date
https://github.com/HiImDarwin/NetworkSecurityFinalProjectpoc-in-github2023-05-15
https://github.com/ssst0n3/docker-cve-2022-39253-pocpoc-in-github2022-12-20

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85Mitigation, Third Party Advisory
http://seclists.org/fulldisclosure/2022/Nov/1Mailing List, Third Party Advisory
http://www.openwall.com/lists/oss-security/2023/02/14/5Mailing List, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/12/msg00025.htmlMailing List, Third Party Advisory
https://support.apple.com/kb/HT213496Third Party Advisory
http://www.openwall.com/lists/oss-security/2024/05/14/2
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C7B6JPKX5CGGLAHXJVQMIZNNEEB72FHD/
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/OHNO2FB55CPX47BAXMBWUBGWHO6N6ZZH/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKFHE4KVD7EKS5J3KTDFVBEKU3CLXGVV/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
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

RepositoryLink kindsIndexedUrl
git/gitfix, security_advisoryyes/v1/repositories/git/git
git-for-windows/gitfixyes/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