Git vulnerability allowing hook writing during cloning
git git
At a glance
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.
Source description · CVE List / CNA
System impact
CVSS summary v3.1
- Published:
- Updated:
- EPSS:
- 29.234%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:git | git | Affected versions:= 2.45.0Show full version range for git= 2.44.0>= 2.43.0, < 2.43.4>= 2.42.0, < 2.42.2= 2.41.0>= 2.40.0, < 2.40.2< 2.39.42.45.02.44.0≥ 2.43, < 2.43.4≥ 2.42.0, < 2.42.22.41.0≥ 2.40.0, < 2.40.2 |
| Vendor:Red Hat | Red Hat Enterprise Linux 6 | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux 7 | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream (v. 8) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream (v. 9) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream AUS (v.8.4) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream AUS (v.8.6) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream E4S (v.8.4) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream E4S (v.8.6) | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Enterprise Linux AppStream E4S (v.9.0) | Affected versions:Source does not specify a version range |
1–10 of 46 · Page 1 of 5
CVSS scores and metrics6
GitHub_M · CVE List / CNA (cna)Primary9.1 / 10CriticalCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Changed
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H[email protected] · NVD (Primary)9.0 / 10CriticalCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Changed
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H[email protected] · NVD (Secondary)9.0 / 10CriticalCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Changed
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HCVE-2024-32002 · OSV (source-vector)9.0 / 10CriticalCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Changed
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HRed Hat · Red Hat VEX (adp)9.0 / 10CriticalCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Changed
Source vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HSUSE · SUSE VEX (adp)8.8 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences