CVE-2024-32002

EUVD-2024-29843
Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a `.git/` directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. If symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.
Path Traversal
Link Following
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9 CRITICAL
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub_MCNA
9.1 CRITICAL
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 99%
Affected Products (NVD)
VendorProductVersion
gitgit
𝑥
< 2.39.4
gitgit
2.40.0 ≤
𝑥
< 2.40.2
gitgit
2.42.0 ≤
𝑥
< 2.42.2
gitgit
2.43.0 ≤
𝑥
< 2.43.4
gitgit
2.41.0
gitgit
2.44.0
gitgit
2.45.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
git
bookworm
1:2.39.5-0+deb12u2
fixed
bookworm (security)
1:2.39.5-0+deb12u2
fixed
bullseye
vulnerable
bullseye (security)
1:2.30.2-1+deb11u5
fixed
forky
1:2.51.0-1
fixed
sid
1:2.51.0-1
fixed
trixie
1:2.47.3-0+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
git
bionic
Fixed 1:2.17.1-1ubuntu0.18+esm1
released
focal
Fixed 1:2.25.1-1ubuntu3.13
released
jammy
Fixed 1:2.34.1-1ubuntu1.11
released
mantic
Fixed 1:2.40.1-1ubuntu1.1
released
noble
Fixed 1:2.43.0-1ubuntu7.1
released
xenial
not-affected