CVE-2022-39260: Git vulnerable to Remote Code Execution via Heap overflow in `git shell`
Noroxi değerlendirmesi
Öncelik: İzleyin (aksiyon skoru 36/100)
- İzlediğimiz kaynaklarda (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) herkese açık istismar kodu ya da sahada sömürü kaydı yok.
- Önümüzdeki 30 günde sömürülme olasılığı %3,9 (FIRST EPSS); kayıtların %90,6 kadarından yüksek.
- İnternetten erişebilen herkes tetikleyebilir. Hesap ya da parola gerekmez. Bir kullanıcının bağlantıyı açması ya da sayfayı ziyaret etmesi gerekir. Özel bir koşul gerekmez; tekrarlanabilir.
- Düzeltilmiş sürüm: git (AlmaLinux:8) 2.39.1-1.el8; git-all (AlmaLinux:8) 2.39.1-1.el8; git-core (AlmaLinux:8) 2.39.1-1.el8.
Şimdilik düşük öncelik. git (AlmaLinux:8) 2.39.1-1.el8; git-all (AlmaLinux:8) 2.39.1-1.el8; git-core (AlmaLinux:8) 2.39.1-1.el8 ya da daha yeni sürüme yükseltin.
Kaydın verisinden otomatik üretilir: CVSS (NVD ve CNA), CISA KEV ve SSVC, FIRST EPSS, istismar kaynakları, düzeltme sürümleri. Nasıl hesaplıyoruz
Birincil kaynaklar: NVD · CVE.org · FIRST EPSS
Git is an open source, scalable, distributed revision control system. `git shell` is a restricted login shell that can be used to implement Git's push/pull functionality via SSH. In versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4, the function that splits the command arguments into an array improperly uses an `int` to represent the number of entries in the array, allowing a malicious actor to intentionally overflow the return value, leading to arbitrary heap writes. Because the resulting array is then passed to `execv()`, it is possible to leverage this attack to gain remote code execution on a victim machine. Note that a victim must first allow access to `git shell` as a login shell in order to be vulnerable to this attack. This problem is patched in versions 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 and users are advised to upgrade to the latest version. Disabling `git shell` access via remote logins is a viable short-term workaround.
- Yayın
- 19 Eki 2022
- Güncelleme
- 17 Haz 2026
- EPSS
- %3,9 · 90. yüzdelik
- CWE
- CWE-122
Rapor araçları
Aksiyon skoru
36
Şimdilik düşük öncelik.
- CVSS
- 35 / 40 · 8.8 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 1 / 30 · %3,9
CNA ile NVD puanı
- NVD
- 8,8
- CNA · GitHub_M
- 8,5
- 0,3 puan fark
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Kaydı açan otoritenin puanı ile NVD’nin bağımsız puanı. İki puan arasındaki fark ciddiyetin tartışmalı olduğunu gösterir.
Bu kayıt değişirse haber alın
- KEV'de değil: sahada sömürü kaydı yok
- Herkese açık istismar kodu kaydı yok
- Düzeltme yayımlandı
Bunlardan biri değişirse günlük e-posta özetinde haber veririz.
Sürümünüz etkileniyor mu? Kontrol edinNoroxi analizi
Sizin ortamınızda ne anlama geliyor?
Yukarıdaki değerlendirme kaydın verisinden otomatik üretilir; ortamınızı bilmez. Bu açığın sizde gerçekten sömürülebilir olup olmadığını ve hangi önlemin yeteceğini ekibimiz sizin sistemlerinizde doğrular.
Bu ürünü kullanıyoruz, yardım isteyinEtkilenen sistemler
Sürümünüz etkileniyor mu?
Ürünü seçip kullandığınız sürümü yazın. Bu kaydın sürüm aralıklarıyla tarayıcınızda karşılaştırılır; sürüm hiçbir yere gönderilmez.
| Üretici | Ürün | CPE |
|---|---|---|
| git-scm | git | cpe:2.3:a:git-scm:git |
| 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 |
Ü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 git
- < 2.30.6, > 2.31.0, < 2.31.5, > 2.32.0, < 2.32.4, > 2.33.0, < 2.33.5, > 2.34.0, < 2.34.5, > 2.34.0, < 2.35.5, > 2.35.0, < 2.36.3, > 2.37.0, < 2.37.4etkilenir
Etkilenen sürümler · NVD (14)
NVD sürüm aralıkları (katalogdaki ürünler için). Stack’inize sürümle eklerseniz eşleşme bunlarla yapılır.
- apple xcode14.1 öncesi
- debian debian linux10.0
- fedoraproject fedora35
- fedoraproject fedora36
- fedoraproject fedora37
- git-scm git2.35.0 ve sonrası · 2.35.5 öncesi
- git-scm git2.36.0 ve sonrası · 2.36.3 öncesi
- git-scm git2.30.6 öncesi
- git-scm git2.37.0 ve sonrası · 2.37.4 öncesi
- git-scm git2.31.0 ve sonrası · 2.31.5 öncesi
- git-scm git2.32.0 ve sonrası · 2.32.4 öncesi
- git-scm git2.33.0 ve sonrası · 2.33.5 öncesi
- git-scm git2.34.0 ve sonrası · 2.34.5 öncesi
- git-scm git2.38.0
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 |
+80
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…68Bu hafta
- CVE-2025-48384Git allows arbitrary code execution through broken config quotingKEV63Bu hafta
- CVE-2021-21300malicious repositories can execute remote code while cloning60Bu hafta
Bu üründe bundan önce ve sonra yayımlananlar
- ← ÖncekiCVE-2022-2918712 Tem 2022 · Bypass of safe.directory protections in Git31İzleyin
- ← ÖncekiCVE-2022-3925319 Eki 2022 · Git subject to exposure of sensitive information via local clone of symbolic links22İzleyin
- Sonraki →CVE-2022-4195317 Oca 2023 · Git clone remote code execution vulnerability in git-for-windows33İzleyin
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.6-r0 · Alpine:v3.13 | Paket deposu (OSV) |
| debian:git | 1:2.38.1-1 · Debian:12 | Paket deposu (OSV) |
| opensuse:git | 2.35.3-150300.10.18.1 · openSUSE:Leap 15.3 | 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.35.3-150300.10.18.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Paket deposu (OSV) |
İ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).
Bu kayıtta yok: yama commit'i ya da PR bağlantısı · araştırmacı kredisi · varyant ya da zincir adayı · herkese açık ödül programı.
Teknik detay
Saldırı koşulları
- İnternetten erişebilen herkes tetikleyebilir.
- Hesap ya da parola gerekmez.
- Bir kullanıcının bağlantıyı açması ya da sayfayı ziyaret etmesi gerekir.
- Ö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ü
- Ağ
- Karmaşıklık
- Düşük
- Gereken yetki
- Yok
- Kullanıcı etkileşimi
- Gerekir
- 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-122 · Heap-based Buffer OverflowCVSS vektörü
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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
—
Değişiklik günlüğü (1)
- Düzeltme✗ → ✓
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
Tüm referansları göster (7 daha)Daha az göster
- github.com/git/git/security/advisories/GHSA-rjr6-wcq6-83p6
- lists.debian.org/debian-lts-announce/2022/12/msg00025.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C7B6JPKX5CGGLAHXJVQMIZNNEEB72FHD/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OHNO2FB55CPX47BAXMBWUBGWHO6N6ZZH/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKFHE4KVD7EKS5J3KTDFVBEKU3CLXGVV/
- security.gentoo.org/glsa/202312-15
- support.apple.com/kb/HT213496
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.