CVE-2024-32002
Reported by github_m · Published May 14, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| git-subtree | Amazon Linux | 2.40.1-1.amzn2023.0.3 |
| git-cvs | Amazon Linux | 2.40.1-1.amzn2023.0.3 |
| git-credential-libsecret | Amazon Linux | 2.40.1-1.amzn2023.0.3 |
| git | Bitnami | 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, 2.39.4 |
| git | git | 2.43.4, 2.42.2, 2.40.2, 2.39.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| git | git | = 2.45.0, = 2.44.0, >= 2.43.0, < 2.43.4 |
| amazon:2023 | git-subtree | 0 |
| amazon:2023 | git-cvs | 0 |
| amazon:2023 | git-credential-libsecret | 0 |
| git | git | 2.44.0, 2.40.0, 2.43.0 |
| amazon:2 | git-all | 0 |
| alpine | git | 0, 0, 0 |
| amazon:2023 | gitk | 0 |
| amazon:2 | git-core-doc | 0 |
| amazon:2 | git-core | 0 |
| amazon:2 | git-p4 | 0 |
| amazon:2 | git-subtree | 0 |
| amazon:2023 | git-svn | 0 |
| amazon:2023 | git-instaweb | 0 |
| amazon:2 | git-email | 0 |
| amazon:2 | git-gui | 0 |
| amazon:2023 | git-core-doc | 0 |
| amazon:2023 | git-email | 0 |
| amazon:2023 | perl-Git-SVN | 0 |
| chainguard | git | 0 |
…and 20 more
Timeline
- May 14, 2024 CVE Published
- May 15, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (21 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Jan 12, 2026 Security Advisory (29 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (17 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-32002
vulnetix vdb fixes CVE-2024-32002
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-32002/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv x_refsource_CONFIRM
- https://github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991d x_refsource_MISC
- https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt x_refsource_MISC
- https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html advisory