CVE-2021-29468
published high CVSS 3.1 · 8.8Arbitrary code execution when checking out an attacker-controlled Git branch
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| me-and | — | Cygwin-Git< 2.31.1-2 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.10 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.11 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.12 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.13 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.14 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.15 | git | Fixed | 0 | Package fix record |
Show 9 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.16 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.17 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.18 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.19 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.20 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.21 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.22 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.23 | git | Fixed | 0 | Package fix record |
| Alpine Linux | v3.24 | git | Fixed | 0 | Package fix record |
Description
Cygwin Git is a patch set for the git command line tool for the cygwin environment. A specially crafted repository that contains symbolic links as well as files with backslash characters in the file name may cause just-checked out code to be executed while checking out a repository using Git on Cygwin. The problem will be patched in the Cygwin Git v2.31.1-2 release. At time of writing, the vulnerability is present in the upstream Git source code; any Cygwin user who compiles Git for themselves from upstream sources should manually apply a patch to mitigate the vulnerability. As mitigation users should not clone or pull from repositories from untrusted sources. CVE-2019-1354 was an equivalent vulnerability in Git for Visual Studio.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| me-and | Cygwin-Git | < 2.31.1-2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
4- https://cygwin.com/pipermail/cygwin-announce/2021-April/010018.html
- https://github.com/me-and/Cygwin-Git/blob/main/check-backslash-safety.patch
- https://github.com/me-and/Cygwin-Git/security/advisories/GHSA-rmp3-wq55-f557
- https://lore.kernel.org/git/CA+kUOa=juEdBMVr_gyTKjz7PkPt2DZHkXQyzcQmAWCsEHC_ssw%40mail.gmail.com/T/#u
Provider assertions
2GitHub_M · cna
Arbitrary code execution when checking out an attacker-controlled Git branch
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 19f92d92e4b0508a16211826d35e824ab212e4da02ea1132a81494e5d7724861
- Ingested
- 23 Sep 2026, 07:53:55 UTC
- Source record
- Official CVE record