Git's recursive clones on case-insensitive filesystems that support symlinks are susceptible to Remote Code Execution
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.
- BDU:2024-03872
- ALSA-2024:4083
- ALSA-2024:4084
- DLA-3844-1
- DLA-3867-1
- DSA-5769-1
- openSUSE-SU-2024:13968-1
- RHSA-2024:4083
- RHSA-2024:4084
- RHSA-2024:4368
- RHSA-2024:4579
- RHSA-2024:6027
- RHSA-2024:6028
- RHSA-2024:6610
- RLSA-2024:4083
- RLSA-2024:4084
- SUSE-SU-2024:1807-1
- SUSE-SU-2024:1807-2
- SUSE-SU-2024:1854-1
- SUSE-SU-2024:2277-1
- Published
- May 14, 2024
- Updated
- Jun 17, 2026
- EPSS
- 29.2% · 98th percentile
- CWE
- CWE-22
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
45
Plan
Add it to your regular patch cycle.
- CVSS
- 36 / 40 · 9.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 9 / 30 · 29.2%
CISA SSVC decision
- Exploitation
- proof of concept
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 9.0
- CNA · GitHub_M
- 9.1
- 0.1 point gap
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| git | git | cpe:2.3:a:git:git |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- git gitbefore 2.39.4
- git git2.40.0 and later · before 2.40.2
- git git2.42.0 and later · before 2.42.2
- git git2.43.0 and later · before 2.43.4
- git git2.41.0
- git git2.44.0
- git git2.45.0
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
git git
- = 2.45.0, = 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.4affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | git | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-all | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-core | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-core-doc | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-credential-libsecret | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-daemon | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-email | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-gui | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-instaweb | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-subtree | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | git-svn | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | gitk | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | gitweb | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | perl-Git | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:8 | perl-Git-SVN | before 2.43.5-1.el8_10 | 2.43.5-1.el8_10 |
| AlmaLinux:9 | git | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
| AlmaLinux:9 | git-all | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
| AlmaLinux:9 | git-core | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
| AlmaLinux:9 | git-core-doc | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
| AlmaLinux:9 | git-credential-libsecret | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
| AlmaLinux:9 | git-daemon | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
| AlmaLinux:9 | git-email | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
| AlmaLinux:9 | git-gui | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
| AlmaLinux:9 | git-instaweb | before 2.43.5-1.el9_4 | 2.43.5-1.el9_4 |
+96
Same product
git: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-25648The package git before 1.11.0 are vulnerable to Command Injection via git argument injection.40Plan
- CVE-2025-48385Git alllows arbitrary file writes via bundle-uri parameter injection34Monitor
- CVE-2008-5517The web interface in git (gitweb) 1.5.x before 1.5.6 allows remote attackers to execute arbitrary commands via shell metacharacters related 34Monitor
- CVE-2020-5260malicious URLs may cause Git to present stored credentials to the wrong server33Monitor
- CVE-2008-5516The web interface in git (gitweb) 1.5.x before 1.5.5 allows remote attackers to execute arbitrary commands via shell metacharacters related 31Monitor
- CVE-2008-3546Stack-based buffer overflow in the (1) diff_addremove and (2) diff_change functions in GIT before 1.5.6.4 might allow local users to execute31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| AlmaLinux:git | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-all | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-core | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-core-doc | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-credential-libsecret | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-daemon | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-email | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-gui | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-instaweb | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-subtree | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:git-svn | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| AlmaLinux:gitk | 2.43.5-1.el9_4 · AlmaLinux:9 | Package registry (OSV) |
| Alpine:git | 2.39.5-r0 · Alpine:v3.17 | Package registry (OSV) |
| Debian:git | 1:2.39.5-0+deb12u1 · Debian:12 | Package registry (OSV) |
| openSUSE:git | 2.35.3-150300.10.39.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| Red Hat:git | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-all | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-core | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-core-debuginfo | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-core-doc | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-credential-libsecret | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-credential-libsecret-debuginfo | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-daemon | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-daemon-debuginfo | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-debuginfo | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-debugsource | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Red Hat:git-email | 0:2.43.5-1.el9_4 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| Rocky Linux:git | 0:2.43.5-1.el9_4 · Rocky Linux:9 | Package registry (OSV) |
| SUSE:git | 2.35.3-150300.10.39.1 · SUSE:Linux Enterprise Micro 5.5 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×50
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:0 | 2024-07-29 |
| Proof-of-concept repository on GitHub | stars:2 | 2024-05-17 |
| Proof-of-concept repository on GitHub | stars:0 | 2024-05-17 |
| Proof-of-concept repository on GitHub | stars:532 | 2024-05-17 |
| Proof-of-concept repository on GitHub | stars:18 | 2024-05-17 |
| Proof-of-concept repository on GitHub | stars:10 | 2024-05-18 |
| Proof-of-concept repository on GitHub | stars:0 | 2024-05-18 |
| Proof-of-concept repository on GitHub | stars:1 | 2024-05-18 |
| Proof-of-concept repository on GitHub | stars:109 | 2024-05-18 |
| Proof-of-concept repository on GitHub | stars:0 | 2024-05-19 |
| Proof-of-concept repository on GitHub | stars:0 | 2024-05-19 |
| Proof-of-concept repository on GitHub | stars:0 | 2024-05-19 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+2 d
- TodaySep 30, 2026+868 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
nvd-primary
Root cause
A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.
The bug in code
The whole CWE-22 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const file = path.join(ROOT, req.query.name);res.sendFile(file);Fixed
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) { return res.sendStatus(400);}res.sendFile(file);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Path TraversalCAPEC-126likelihood: High · Very High
- Using Slashes and URL Encoding Combined to Bypass Validation LogicCAPEC-64likelihood: High · High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
- Using Escaped Slashes in Alternate EncodingCAPEC-78likelihood: High · High
- Using Slashes in Alternate EncodingCAPEC-79likelihood: High · High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.openwall.com/lists/oss-security/2024/05/14/2
- git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt
- git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
- github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991d
- github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv
- lists.debian.org/debian-lts-announce/2024/06/msg00018.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/
- lists.debian.org/debian-lts-announce/2024/09/msg00009.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.