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 `.
Overview
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
- 5/14/2024
- Last modified
- 6/17/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
git git | < 2.39.4 | Verify advisory | Source |
git git | ≥ 2.40.0, < 2.40.2 | Verify advisory | Source |
git git | ≥ 2.42.0, < 2.42.2 | Verify advisory | Source |
git git | ≥ 2.43.0, < 2.43.4 | Verify advisory | Source |
git git | 2.41.0 | Verify advisory | Source |
git git | 2.44.0 | Verify advisory | Source |
git git | 2.45.0 | Verify advisory | Source |
git git | = 2.45.0 | Verify advisory | Source |
git git | = 2.44.0 | Verify advisory | Source |
git git | >= 2.43.0, < 2.43.4 | Verify advisory | Source |
git git | >= 2.42.0, < 2.42.2 | Verify advisory | Source |
git git | = 2.41.0 | Verify advisory | Source |
git git | >= 2.40.0, < 2.40.2 | Verify advisory | Source |
git git | < 2.39.4 | Verify advisory | Source |
git git | 2.45.0 | Verify advisory | Source |
git git | 2.44.0 | Verify advisory | Source |
git git | ≥ 2.43, < 2.43.4 | Verify advisory | Source |
git git | ≥ 2.42.0, < 2.42.2 | Verify advisory | Source |
git git | 2.41.0 | Verify advisory | Source |
git git | ≥ 2.40.0, < 2.40.2 | Verify advisory | Source |
git git | < 2.39.4 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 9. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.