PT-2022-7022 · Git+9 · Git+9

Cory Snider

·

Published

2021-08-05

·

Updated

2025-09-29

·

CVE-2022-39253

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Git versions prior to 2.30.6 Git versions prior to 2.31.5 Git versions prior to 2.32.4 Git versions prior to 2.33.5 Git versions prior to 2.34.5 Git versions prior to 2.35.5 Git versions prior to 2.36.3 Git versions prior to 2.37.4
Description The issue is related to the exposure of sensitive information to a malicious actor when performing a local clone of a Git repository. 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.
Recommendations For versions prior to 2.30.6, update to version 2.30.6 or later. For versions prior to 2.31.5, update to version 2.31.5 or later. For versions prior to 2.32.4, update to version 2.32.4 or later. For versions prior to 2.33.5, update to version 2.33.5 or later. For versions prior to 2.34.5, update to version 2.34.5 or later. For versions prior to 2.35.5, update to version 2.35.5 or later. For versions prior to 2.36.3, update to version 2.36.3 or later. For versions prior to 2.37.4, update to version 2.37.4 or later. As a temporary workaround, 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.

Exploit

Fix

Link Following

Information Disclosure

Weakness Enumeration

Related Identifiers

ALSA-2021_3020
ALSA-2022_0543
ALSA-2022_0672
ALSA-2022_5779
ALSA-2022_6447
ALSA-2022_6450
ALSA-2022_6585
ALSA-2023:2319
ALSA-2023:2859
ALSA-2023_2319
ALSA-2023_2859
ALSA-2024_1431
ALSA-2024_1576
ALSA-2025_16880
ALT-PU-2022-2876
ALT-PU-2022-2894
ALT-PU-2022-2906
ALT-PU-2022-3198
ALT-PU-2023-4135
ALT-PU-2023-7986
ALT-PU-2024-13162
ALT-PU-2024-2130
ALT-PU-2024-7811
BDU:2023-06647
CESA-2023_2859
CVE-2022-39253
DLA-3239-1
DLA-3239-2
DSA-5332-1
ELSA-2023-2319
ELSA-2023-2859
GHSA-3WP6-J8XR-QW85
GHSA-GW92-X3FM-3G3Q
MGASA-2022-0396
OESA-2022-2029
OPENSUSE-SU-2022_3931-1
OPENSUSE-SU-2023_0418-1
OPENSUSE-SU-2024:12430-1
OPENSUSE-SU-2024:12487-1
OPENSUSE-SU-2024:12851-1
RHSA-2023:2319
RHSA-2023:2859
RHSA-2023_2319
RHSA-2023_2859
RHSA-2024:0407
ROSA-SA-2024-2398
SUSE-SU-2022:3931-1
SUSE-SU-2022:4271-1
SUSE-SU-2022_3931-1
SUSE-SU-2022_4271-1
SUSE-SU-2023:0418-1
SUSE-SU-2023_0418-1
USN-5686-1
USN-5686-3
USN-5686-4

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Git
Linuxmint
Apple Macos
Red Hat
Suse
Ubuntu