CVE-2022-29187

High

Description

Git is a distributed revision control system. Git prior to versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5, is vulnerable to privilege escalation in all platforms. An unsuspecting user could still be affected by the issue reported in CVE-2022-24765, for example when navigating as root into a shared tmp directory that is owned by them, but where an attacker could create a git repository. Versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5 contain a patch for this issue. The simplest way to avoid being affected by the exploit described in the example is to avoid running git as root (or an Administrator in Windows), and if needed to reduce its use to a minimum. While a generic workaround is not possible, a system could be hardened from the exploit described in the example by removing any such repository if it exists already and creating one as root to block any future attacks.

SeverityHigh
CVSS7.8
Exploit probability—
ProductGit
PublishedJul 12, 2022
First seenJul 12, 2022

How to fix

Affected products

ProductAffected versionsFixed in
git-scm git2.30.3 ≤ v < 2.30.5, 2.31.2 ≤ v < 2.31.4, 2.32.1 ≤ v < 2.32.3, 2.33.2 ≤ v < 2.33.4, 2.34.2 ≤ v < 2.34.4, 2.35.2 ≤ v < 2.35.4, 2.36.0 ≤ v < 2.36.2, 2.37.0 ≤ v < 2.37.12.30.5, 2.31.4, 2.32.3, 2.33.4, 2.34.4, 2.35.4, 2.36.2, 2.37.1
fedoraproject fedora35, 36, 37—
apple xcodev < 14.114.1
debian debian_linux10.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.