Uncontrolled search for the Git directory in Git for Windows
Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\.git\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\Users` if the user profile is located in `C:\Users\my-user-name`.
- BDU:2022-02723
- ALSA-2023:2319
- ALSA-2023:2859
- DLA-3239-1
- DSA-5332-1
- openSUSE-SU-2024:12003-1
- openSUSE-SU-2024:12005-1
- openSUSE-SU-2024:12223-1
- RHSA-2023:2319
- RHSA-2023:2859
- RHSA-2024:0407
- SUSE-SU-2022:1260-1
- SUSE-SU-2022:1306-1
- SUSE-SU-2022:1484-1
- SUSE-SU-2022:3283-1
- SUSE-SU-2022:3494-1
- SUSE-SU-2022:3495-1
- Yayın
- 12 Nis 2022
- Güncelleme
- 17 Haz 2026
- EPSS
- %1,0 · 62. yüzdelik
- CWE
- CWE-427
Takip etmek için giriş yap · Takip ettiğin kayıt KEV’e girer, istismarı çıkar ya da güncellenirse bildirim alırsın.
Rapor araçları
Aksiyon skoru
31
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %1,0
CISA SSVC kararı
- Sömürü
- yok
- Otomatikleştirilebilir
- hayır
- Teknik etki
- tam
Vulnrichment: CISA'nın karar ağacı girdileri.
CNA ile NVD puanı
- NVD
- 7,8
- CNA · GitHub_M
- 6,0
- 1,8 puan fark
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
Kaydı açan otoritenin puanı ile NVD’nin bağımsız puanı. İki puan arasındaki fark ciddiyetin tartışmalı olduğunu gösterir.
Etkilenen sistemler
| Üretici | Ürün | CPE |
|---|---|---|
| git-scm | git | cpe:2.3:a:git-scm:git |
| microsoft | windows | cpe:2.3:o:microsoft:windows |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| apple | xcode | cpe:2.3:a:apple:xcode |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Etkilenen sürümler
NVD sürüm aralıkları (katalogdaki ürünler için). Stack’ine sürümle eklersen eşleşme bunlarla yapılır.
- apple xcode13.4 öncesi
- debian debian linux10.0
- fedoraproject fedora34
- fedoraproject fedora35
- fedoraproject fedora36
- fedoraproject fedora37
- git-scm git2.35.2 öncesi
Üreticinin bildirdiği sürümler
Kaydı açan otorite (GitHub_M) tarafından bildirilen etkilenen sürüm aralıkları. NVD'nin CPE analizinden bağımsızdır ve genellikle ondan önce gelir.
git-for-windows git
- < 2.35.2etkilenir
Paket düzeyi etkilenme
OSV ve GitHub Advisory verisi: ekosistem, paket ve aralık. SBOM eşleşmesi bu tabloyu kullanır.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| AlmaLinux:8 | git | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-all | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-core | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-core-doc | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-credential-libsecret | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-daemon | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-email | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-gui | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-instaweb | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-subtree | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | git-svn | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | gitk | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | gitweb | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | perl-Git | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:8 | perl-Git-SVN | 2.39.1-1.el8 öncesi | 2.39.1-1.el8 |
| AlmaLinux:9 | git | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
| AlmaLinux:9 | git-all | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
| AlmaLinux:9 | git-core | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
| AlmaLinux:9 | git-core-doc | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
| AlmaLinux:9 | git-credential-libsecret | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
| AlmaLinux:9 | git-daemon | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
| AlmaLinux:9 | git-email | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
| AlmaLinux:9 | git-gui | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
| AlmaLinux:9 | git-instaweb | 2.39.1-1.el9 öncesi | 2.39.1-1.el9 |
+87
Aynı üründe
git-scm: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- CVE-2018-17456Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows r68Bu hafta
- CVE-2025-48384Git allows arbitrary code execution through broken config quotingKEV63Bu hafta
- CVE-2017-1000117A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL can result in any prog58Planlayın
- CVE-2021-21300malicious repositories can execute remote code while cloning57Planlayın
- CVE-2022-23521gitattributes parsing integer overflow in git56Planlayın
- CVE-2022-41903Integer overflow in `git archive`, `git log --format` leading to RCE in git52Planlayın
Düzeltme
Hangi sürüme geçmeli
Üretici, paket deposu ve Microsoft kayıtlarından derlenen düzeltme sürümleri. Yükseltmeden önce üreticinin notunu doğrulayın.
| Ürün / paket | Düzeltilmiş sürüm | Kaynak |
|---|---|---|
| almalinux:git | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-all | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-core | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-core-doc | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-credential-libsecret | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-daemon | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-email | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-gui | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-instaweb | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-subtree | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:git-svn | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| almalinux:gitk | 2.39.1-1.el9 · AlmaLinux:9 | Paket deposu (OSV) |
| alpine:git | 2.30.3-r0 · Alpine:v3.13 | Paket deposu (OSV) |
| debian:git | 1:2.35.2-1 · Debian:12 | Paket deposu (OSV) |
| opensuse:git | 2.26.2-150000.36.1 · openSUSE:Leap 15.3 | Paket deposu (OSV) |
| opensuse:git-annex | 10.20220624-1.1 · openSUSE:Tumbleweed | Paket deposu (OSV) |
| opensuse:libgit2 | 1.3.0-150400.3.3.1 · openSUSE:Leap 15.4 | Paket deposu (OSV) |
| red hat:git | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-all | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-core | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-core-debuginfo | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-core-doc | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-credential-libsecret | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-credential-libsecret-debuginfo | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-daemon | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-daemon-debuginfo | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-debuginfo | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-debugsource | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| red hat:git-email | 0:2.39.1-1.el9 · Red Hat:enterprise_linux:9::appstream | Paket deposu (OSV) |
| suse:git | 2.26.2-150000.36.1 · SUSE:Linux Enterprise High Performance Computing 15-ESPOS | Paket deposu (OSV) |
+1
İstismar durumu
Bilinen kamuya açık istismar yok
Şu an kamuya açık bir istismar görülmedi. Bu, güvende olduğunuz anlamına gelmez; yalnızca eşiğin biraz daha yüksek olduğunu gösterir.
Araştırma bağlamı
Pentester ve araştırmacı için: saldırı profili, puan anlaşmazlığı, zaman çizelgesi, yama commit’leri, kredi, varyant ve zincir adayları, bug bounty kapsamı. Hepsi mevcut veriden türetilir; istismar kodu içermez.
Zaman çizelgesi
Yayından bugüne: kavram kanıtı, Metasploit modülü, CISA KEV ve düzeltme kaydı. Tarihler kaynakların bildirdiği tarihlerdir.
Yayın dışında tarihli olay yok.
FIRST EPSS günlük puanı; yalnızca 0,01 ve üstü değişimler kaydedilir (adım grafiği).
Yama ve commit bağlantıları
Referanslardaki commit, PR ve diff adresleri. Patch-diff ve varyant avı için başlangıç noktası; istismar değil, düzeltmedir.
Referanslarda commit ya da PR bağlantısı yok.
Kredi
Tüm araştırmacılarCNA kaydında adı geçen bulan, bildiren ve analistler. Ada tıkla, aynı araştırmacının diğer kayıtlarını gör.
CNA kaydında kredi yok.
Varyant adayları
Aynı üründe aynı zafiyet sınıfı, 18 ay içinde. Yama kök nedeni kapatmadıysa kardeş hata burada olur.
Gece hesaplanan ilişki yok.
Zincir adayları
Aynı üründe kimlik doğrulama atlatma ile yetki isteyen bir açık kısa aralıkla yayımlanmış: birlikte kimlik doğrulamasız bir yola dönüşebilir.
—
Bug bounty kapsamı
Bilinen herkese açık program yok.
Kaynak: bounty-targets-data (HackerOne, Bugcrowd, Intigriti, YesWeHack herkese açık listeleri).
Teknik detay
Saldırı koşulları
- Sisteme yerel erişimi olan biri tetikleyebilir.
- Düşük yetkili bir hesap yeterli.
- Kullanıcının bir şey yapması gerekmez.
- Özel bir koşul gerekmez; tekrarlanabilir.
Başarılı olursa
- Gizlilik
- yüksek · veriler okunabilir
- Bütünlük
- yüksek · veri ya da yapılandırma değiştirilebilir
- Erişilebilirlik
- yüksek · hizmet durdurulabilir
- Saldırı vektörü
- Yerel
- Karmaşıklık
- Düşük
- Gereken yetki
- Düşük
- Kullanıcı etkileşimi
- Gerekmez
- Kapsam
- Değişmez
- Gizlilik etkisi
- Yüksek
- Bütünlük etkisi
- Yüksek
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-427 · Uncontrolled Search Path ElementCVSS vektörü
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Saldırı bağlamı
Bu zafiyet sınıfının (CWE) MITRE CAPEC saldırı desenleri ve ATT&CK teknikleri. Tespit kuralı ve tehdit avı için başlangıç noktası.
Saldırı desenleri (CAPEC)
ATT&CK teknikleri
- Hijack Execution Flow:DLL search order hijackingT1574.001
- Hijack Execution Flow: Dylib HijackingT1574.004
- Hijack Execution Flow: Path Interception by PATH Environment VariableT1574.007
- Hijack Execution Flow: Path Interception by Search Order HijackingT1574.008
- Hijack Execution Flow: Path Interception by Unquoted PathT1574.009
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
385 binden fazla zafiyetin tamamına elle analiz yazmıyoruz; bu dürüst olmazdı. Öne çıkan ve sahada etkisi olan zafiyetler için mekanizma, tespit ve kapatma adımlarını ekibimiz yazıyor.
Bu ürünü kullanıyoruz, yardım isteyinDeğişiklik günlüğü
- Düzeltme✗ → ✓
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
- seclists.org/fulldisclosure/2022/May/31
- www.openwall.com/lists/oss-security/2022/04/12/7
- git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash
- git-scm.com/docs/git#Documentation/git.txt-codeGITCEILINGDIRECTORIEScode
- github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2
- lists.debian.org/debian-lts-announce/2022/12/msg00025.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5PTN5NYEHYN2OQSHSAMCNICZNK2U4QH6/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BENQYTDGUL6TF3UALY6GSIEXIHUIYNWM/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDI325LOO2XBDDKLINOAQJEG6MHAURZE/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DIKWISWUDFT2FAITYIA6372BVLH3OOOC/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVOLER2PIGMHPQMDGG4RDE2KZB74QLA2/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SLP42KIZ6HACTVZMZLJLFJQ4W2XYT27M/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TRZG5CDUQ27OWTPC5MQOR4UASNXHWEZS/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UDZRZAL7QULOB6V7MKT66MOMWJLBJPX4/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YROCMBWYFKRSS64PO6FUNM6L7LKBUKVW/
- security.gentoo.org/glsa/202312-15
- support.apple.com/kb/HT213261
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.