Logo
vulnerabilityCVE-2024-32002
Name
CVE-2024-32002
Source
NVD ( link)Debian ( link)
Description
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
git
Not Affected

Vulnerability Ratings#


9
CVSSv31
9
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
2.48.2
Not Affected
buildroot
master
2.54.0
Not Affected
openwrt
master
2.50.1-r1
Not Affected
openwrt
openwrt-25.12
2.50.1-r1
Not Affected
yocto
kirkstone
2.35.7
Patched
yocto
scarthgap
2.44.4
Not Affected

Resolved with patches#


git (yocto:kirkstone)

#
Title
Author
Resolve
1
submodule--helper: fix a leak in "clone_submodule"
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
CVE-2024-32002
2
submodule--helper: add "const" to passed "module_clone_data"
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
CVE-2024-32002
3
submodule--helper: use xstrfmt() in clone_submodule()
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
CVE-2024-32002
4
submodules: submodule paths must not contain symlinks
Johannes Schindelin <johannes.schindelin@gmx.de>
CVE-2024-32002