Rapid7 Vulnerability & Exploit Database

CentOS Linux: CVE-2022-39253: Moderate: git security and bug fix update (Multiple Advisories)

Free InsightVM Trial No credit card necessary
Watch Demo See how it all works
Back to Search

CentOS Linux: CVE-2022-39253: Moderate: git security and bug fix update (Multiple Advisories)



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


  • centos-upgrade-git
  • centos-upgrade-git-all
  • centos-upgrade-git-core
  • centos-upgrade-git-core-debuginfo
  • centos-upgrade-git-core-doc
  • centos-upgrade-git-credential-libsecret
  • centos-upgrade-git-credential-libsecret-debuginfo
  • centos-upgrade-git-daemon
  • centos-upgrade-git-daemon-debuginfo
  • centos-upgrade-git-debuginfo
  • centos-upgrade-git-debugsource
  • centos-upgrade-git-email
  • centos-upgrade-git-gui
  • centos-upgrade-git-instaweb
  • centos-upgrade-git-subtree
  • centos-upgrade-git-svn
  • centos-upgrade-gitk
  • centos-upgrade-gitweb
  • centos-upgrade-perl-git
  • centos-upgrade-perl-git-svn

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center