CVEfocus › CVE database › CVE-2022-39253

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

CVSS 5.5 MediumEPSS 0.9% (higher than 57% of CVEs)Published 2022-10-19Updated 2024-08-03Assigner: GitHub_M

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

CWE-200

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

96Fixed
1Fix pending
30Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04gitFixed1:2.34.1-1ubuntu1.5UBUNTU-CVE-2022-39253
Ubuntu 20.04gitFixed1:2.25.1-1ubuntu3.6UBUNTU-CVE-2022-39253
Ubuntu 18.04gitFixed1:2.17.1-1ubuntu0.13UBUNTU-CVE-2022-39253
Ubuntu 16.04gitFix pending1:2.7.4-0ubuntu1.10+esm6 (Ubuntu Pro)UBUNTU-CVE-2022-39253
Debian 14gitFixed1:2.38.1-1DEBIAN-CVE-2022-39253
Debian 13gitFixed1:2.38.1-1DEBIAN-CVE-2022-39253
Debian 12gitFixed1:2.38.1-1DEBIAN-CVE-2022-39253
Red Hat Enterprise Linux 9gitFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-allFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-coreFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-core-docFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-credential-libsecretFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-daemonFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-emailFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-guiFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-instawebFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-subtreeFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9git-svnFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9gitkFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9gitwebFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9perl-GitFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 9perl-Git-SVNFixed0:2.39.1-1.el9RHSA-2023:2319
Red Hat Enterprise Linux 8gitFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-allFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-coreFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-core-docFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-credential-libsecretFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-daemonFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-emailFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-guiFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-instawebFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-subtreeFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8git-svnFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8gitkFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8gitwebFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8perl-GitFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 8perl-Git-SVNFixed0:2.39.1-1.el8RHSA-2023:2859
Red Hat Enterprise Linux 7emacs-gitWill not fix
Out of support scope
Red Hat Enterprise Linux 7emacs-git-elWill not fix
Out of support scope
Red Hat Enterprise Linux 7gitWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-allWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-bzrWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-cvsWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-daemonWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-emailWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-gnome-keyringWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-guiWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-hgWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-instawebWill not fix
Out of support scope
Red Hat Enterprise Linux 7git-p4Will not fix
Out of support scope
Red Hat Enterprise Linux 7git-svnWill not fix
Out of support scope
Red Hat Enterprise Linux 7gitkWill not fix
Out of support scope
Red Hat Enterprise Linux 7gitwebWill not fix
Out of support scope
Red Hat Enterprise Linux 7perl-GitWill not fix
Out of support scope
Red Hat Enterprise Linux 7perl-Git-SVNWill not fix
Out of support scope
Red Hat Enterprise Linux 6emacs-gitWill not fix
Out of support scope
Red Hat Enterprise Linux 6emacs-git-elWill not fix
Out of support scope
Red Hat Enterprise Linux 6gitWill not fix
Out of support scope
Red Hat Enterprise Linux 6git-allWill not fix
Out of support scope
Red Hat Enterprise Linux 6git-cvsWill not fix
Out of support scope
Red Hat Enterprise Linux 6git-daemonWill not fix
Out of support scope
Red Hat Enterprise Linux 6git-emailWill not fix
Out of support scope
Red Hat Enterprise Linux 6git-guiWill not fix
Out of support scope
Red Hat Enterprise Linux 6git-svnWill not fix
Out of support scope
Red Hat Enterprise Linux 6gitkWill not fix
Out of support scope
Red Hat Enterprise Linux 6gitwebWill not fix
Out of support scope
Red Hat Enterprise Linux 6perl-GitWill not fix
Out of support scope
AlmaLinux 9gitFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-allFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-coreFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-core-docFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-credential-libsecretFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-daemonFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-emailFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-guiFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-instawebFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-subtreeFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9git-svnFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9gitkFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9gitwebFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9perl-GitFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 9perl-Git-SVNFixed2.39.1-1.el9ALSA-2023:2319
AlmaLinux 8gitFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-allFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-coreFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-core-docFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-credential-libsecretFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-daemonFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-emailFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-guiFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-instawebFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-subtreeFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8git-svnFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8gitkFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8gitwebFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8perl-GitFixed2.39.1-1.el8ALSA-2023:2859
AlmaLinux 8perl-Git-SVNFixed2.39.1-1.el8ALSA-2023:2859
Alpine Linux 3.24dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.24docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.24gitFixed2.38.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.23dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.23docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.23gitFixed2.38.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.22dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.22docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.22gitFixed2.38.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.21dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.21docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.21gitFixed2.38.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.20dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.20docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.20gitFixed2.38.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.19dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.19docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.19gitFixed2.38.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.18dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.18docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.18gitFixed2.38.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.17dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.17docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.17gitFixed2.38.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.16dockerFixed20.10.20-r0ALPINE-CVE-2022-39253
Alpine Linux 3.16docker-cli-composeFixed2.12.1-r0ALPINE-CVE-2022-39253
Alpine Linux 3.16gitFixed2.36.3-r0ALPINE-CVE-2022-39253
Alpine Linux 3.15gitFixed2.34.5-r0ALPINE-CVE-2022-39253
Alpine Linux 3.14gitFixed2.32.4-r0ALPINE-CVE-2022-39253
Alpine Linux 3.13gitFixed2.30.6-r0ALPINE-CVE-2022-39253

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.