Git cloning of malicious repositories can lead to code execution
CVE-2026-111760
Git users who download untrusted projects can be hacked.
- CVE
- CVE-2026-111760 (opens in a new tab)
- Score
- CVSS 8.0
- First seen
Mitigation
Update Git to the fixed version for your release line. Find your product's fixed version in the list below. Until then, avoid cloning repositories from untrusted sources. Omitting --recurse-submodules is not a sufficient workaround.
Fixed version by product
- git 2.50
- 2.50.2 or later
- git 2.51
- 2.51.3 or later
- git 2.52
- 2.52.1 or later
- git 2.53
- 2.53.1 or later
- git 2.54
- 2.54.1 or later
- git 2.55
- 2.55.1 or later
- git 2.56
- 2.56.1 or later
2 moreShow less
Summary
Cloning a repository crafted by an attacker can make Git run attacker-supplied configuration or hooks, executing code on the cloning user's system. Several Git release lines are affected.
Affected when
- Cloning a repository from an attacker-controlled server
- Running git status in the resulting folder
2 other Incidents of this product in the last 30 days
Incidents by product: git
Other recent Incidents of git
Distribution packages (16) (every link below opens in a new tab)
- Debian 13 (trixie)git · not fixed yet
- Debian 12 (bookworm)git · not fixed yet
- Alpine 3.24git · fixed in 2.54.1-r0
- Alpine 3.23git · fixed in 2.52.1-r0
- RHEL 10git · not fixed yet
- RHEL 9git · not fixed yet
- RHEL 8git · not fixed yet
- SLES 16.1git · not fixed yet
- SLES 16.1libgit2 · not affected
- SLES 16.0git · not fixed yet
- SLES 16.0libgit2 · not affected
- SLES 15 SP7git · not fixed yet
- SLES 15 SP7libgit2 · not affected
- openSUSE Leap 16.0git · not fixed yet
- openSUSE Leap 16.0libgit2 · not affected
- openSUSE Tumbleweedgit · fixed in 2.56.1-1.1
Sources: Debian Security Tracker · Alpine Linux secdb · Red Hat Security Data (CC BY 4.0) · SUSE CSAF VEX (CC BY 4.0)
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
- Repository: googlesky/CVE-2026-111760 (opens in a new tab)