CVE-2022-29187

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.8 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub_MCNA
7.8 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 13%
VendorProductVersion
git-scmgit
2.30.3 ≤
𝑥
< 2.30.5
git-scmgit
2.31.2 ≤
𝑥
< 2.31.4
git-scmgit
2.32.1 ≤
𝑥
< 2.32.3
git-scmgit
2.33.2 ≤
𝑥
< 2.33.4
git-scmgit
2.34.2 ≤
𝑥
< 2.34.4
git-scmgit
2.35.2 ≤
𝑥
< 2.35.4
git-scmgit
2.36.0 ≤
𝑥
< 2.36.2
git-scmgit
2.37.0 ≤
𝑥
< 2.37.1
applexcode
𝑥
< 14.1
debiandebian_linux
10.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
git
bullseye
1:2.30.2-1+deb11u2
fixed
bullseye (security)
1:2.30.2-1+deb11u3
fixed
bookworm
1:2.39.2-1.1
fixed
bookworm (security)
1:2.39.5-0+deb12u1
fixed
trixie
1:2.45.2-1
fixed
sid
1:2.45.2-1.1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
git
noble
Fixed 1:2.36.1-1ubuntu2
released
mantic
Fixed 1:2.36.1-1ubuntu2
released
lunar
Fixed 1:2.36.1-1ubuntu2
released
kinetic
Fixed 1:2.36.1-1ubuntu2
released
jammy
Fixed 1:2.34.1-1ubuntu1.4
released
impish
Fixed 1:2.32.0-1ubuntu1.3
released
focal
Fixed 1:2.25.1-1ubuntu3.5
released
bionic
Fixed 1:2.17.1-1ubuntu0.12
released
xenial
needed
trusty
ignored
References