CVE-2023-26489: Guest-controlled out-of-bounds read/write on x86_64 in wasmtime
Noroxi değerlendirmesi
Öncelik: İzleyin (aksiyon skoru 39/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ığı %1,2 (FIRST EPSS); kayıtların %69,8 kadarından yüksek.
- İnternetten erişebilen herkes tetikleyebilir. Düşük yetkili bir hesap yeterli. Kullanıcının bir şey yapması gerekmez. Özel bir koşul gerekmez; tekrarlanabilir.
- Düzeltilmiş sürüm: cranelift-codegen (crates.io) 0.91.1, 0.92.1, 0.93.1; wasmtime (crates.io) 4.0.1, 5.0.1, 6.0.1.
Şimdilik düşük öncelik. cranelift-codegen (crates.io) 0.91.1, 0.92.1, 0.93.1; wasmtime (crates.io) 4.0.1, 5.0.1, 6.0.1 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
wasmtime is a fast and secure runtime for WebAssembly. In affected versions wasmtime's code generator, Cranelift, has a bug on x86_64 targets where address-mode computation mistakenly would calculate a 35-bit effective address instead of WebAssembly's defined 33-bit effective address. This bug means that, with default codegen settings, a wasm-controlled load/store operation could read/write addresses up to 35 bits away from the base of linear memory. Due to this bug, however, addresses up to `0xffffffff * 8 + 0x7ffffffc = 36507222004 = ~34G` bytes away from the base of linear memory are possible from guest code. This means that the virtual memory 6G away from the base of linear memory up to ~34G away can be read/written by a malicious module. A guest module can, without the knowledge of the embedder, read/write memory in this region. The memory may belong to other WebAssembly instances when using the pooling allocator, for example. Affected embedders are recommended to analyze preexisting wasm modules to see if they're affected by the incorrect codegen rules and possibly correlate that with an anomalous number of traps during historical execution to locate possibly suspicious modules. The specific bug in Cranelift's x86_64 backend is that a WebAssembly address which is left-shifted by a constant amount from 1 to 3 will get folded into x86_64's addressing modes which perform shifts. For example `(i32.load (i32.shl (local.get 0) (i32.const 3)))` loads from the WebAssembly address `$local0 << 3`. When translated to Cranelift the `$local0 << 3` computation, a 32-bit value, is zero-extended to a 64-bit value and then added to the base address of linear memory. Cranelift would generate an instruction of the form `movl (%base, %local0, 8), %dst` which calculates `%base + %local0 << 3`. The bug here, however, is that the address computation happens with 64-bit values, where the `$local0 << 3` computation was supposed to be truncated to a a 32-bit value. This means that `%local0`, which can use up to 32-bits for an address, gets 3 extra bits of address space to be accessible via this `movl` instruction. The fix in Cranelift is to remove the erroneous lowering rules in the backend which handle these zero-extended expression. The above example is then translated to `movl %local0, %temp; shl $3, %temp; movl (%base, %temp), %dst` which correctly truncates the intermediate computation of `%local0 << 3` to 32-bits inside the `%temp` register which is then added to the `%base` value. Wasmtime version 4.0.1, 5.0.1, and 6.0.1 have been released and have all been patched to no longer contain the erroneous lowering rules. While updating Wasmtime is recommended, there are a number of possible workarounds that embedders can employ to mitigate this issue if updating is not possible. Note that none of these workarounds are on-by-default and require explicit configuration: 1. The `Config::static_memory_maximum_size(0)` option can be used to force all accesses to linear memory to be explicitly bounds-checked. This will perform a bounds check separately from the address-mode computation which correctly calculates the effective address of a load/store. Note that this can have a large impact on the execution performance of WebAssembly modules. 2. The `Config::static_memory_guard_size(1 << 36)` option can be used to greatly increase the guard pages placed after linear memory. This will guarantee that memory accesses up-to-34G away are guaranteed to be semantically correct by reserving unmapped memory for the instance. Note that this reserves a very large amount of virtual memory per-instances and can greatly reduce the maximum number of concurrent instances being run. 3. If using a non-x86_64 host is possible, then that will also work around this bug. This bug does not affect Wasmtime's or Cranelift's AArch64 backend, for example.
- Yayın
- 8 Mar 2023
- Güncelleme
- 17 Haz 2026
- EPSS
- %1,2 · 69. yüzdelik
- CWE
- CWE-125
Rapor araçları
Aksiyon skoru
39
Şimdilik düşük öncelik.
- CVSS
- 39 / 40 · 9.9 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · %1,2
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
- 9,9
- CNA · GitHub_M
- 10,0
- 0,1 puan fark
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 |
|---|---|---|
| bytecodealliance | cranelift-codegen | cpe:2.3:a:bytecodealliance:cranelift-codegen |
| bytecodealliance | wasmtime | cpe:2.3:a:bytecodealliance:wasmtime |
Ü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.
bytecodealliance wasmtime
- cranelift-codegen: >= 0.84.0, < 0.91.1, cranelift-codegen: >= 0.92.0, < 0.92.1, cranelift-codegen: >= 0.93.0, < 0.93.1, wasmtime: >= 0.37.0, < 4.0.1, wasmtime: >= 5.0.0, < 5.0.1, wasmtime: >= 6.0.0, < 6.0.1etkilenir
Etkilenen sürümler · NVD (6)
NVD sürüm aralıkları (katalogdaki ürünler için). Stack’inize sürümle eklerseniz eşleşme bunlarla yapılır.
- bytecodealliance cranelift-codegen0.84.0 ve sonrası · 0.91.1 öncesi
- bytecodealliance cranelift-codegen0.92.0
- bytecodealliance cranelift-codegen0.93.0
- bytecodealliance wasmtime0.37.0 ve sonrası · 4.0.1 öncesi
- bytecodealliance wasmtime5.0.0
- bytecodealliance wasmtime6.0.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 |
|---|---|---|---|
| crates.io | cranelift-codegen | 0.84.0 itibarıyla · 0.91.1 öncesi | 0.91.1 |
| crates.io | cranelift-codegen | 0.92.0 itibarıyla · 0.92.1 öncesi | 0.92.1 |
| crates.io | cranelift-codegen | 0.93.0 itibarıyla · 0.93.1 öncesi | 0.93.1 |
| crates.io | wasmtime | 0.0.0-0 itibarıyla · 4.0.1 öncesi | 4.0.1 |
| crates.io | wasmtime | 0.37.0 itibarıyla · 4.0.1 öncesi | 4.0.1 |
| crates.io | wasmtime | 5.0.0 itibarıyla · 5.0.1 öncesi | 5.0.1 |
| crates.io | wasmtime | 6.0.0 itibarıyla · 6.0.1 öncesi | 6.0.1 |
Aynı üründe
bytecodealliance: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- CVE-2022-31146Use After Free in Wasmtime35İzleyin
- CVE-2021-32629Memory access due to code generation flaw in Cranelift module35İzleyin
- CVE-2022-31169Cranelift vulnerable to miscompilation of constant values in division on AArch6430İzleyin
Bu üründe bundan önce ve sonra yayımlananlar
- ← ÖncekiCVE-2022-3110427 Haz 2022 · Miscompilation of `i8x16.swizzle` and `select` with v128 inputs in Wasmtime23İzleyin
- Sonraki →CVE-2023-274778 Mar 2023 · wasmtime is a fast and secure runtime for WebAssembly.17İ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 |
|---|---|---|
| crates.io:cranelift-codegen | 0.91.1 | Paket deposu (OSV) |
| crates.io:cranelift-codegen | 0.92.1 | Paket deposu (OSV) |
| crates.io:cranelift-codegen | 0.93.1 | Paket deposu (OSV) |
| crates.io:wasmtime | 4.0.1 | Paket deposu (OSV) |
| crates.io:wasmtime | 5.0.1 | Paket deposu (OSV) |
| crates.io:wasmtime | 6.0.1 | 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.
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.
Bu kayıtta yok: EPSS geçmişi · 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.
- 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
Etki, zafiyetli bileşenin ötesine geçebilir (kapsam değişir).
- Saldırı vektörü
- Ağ
- Karmaşıklık
- Düşük
- Gereken yetki
- Düşük
- Kullanıcı etkileşimi
- Gerekmez
- Kapsam
- Değişir
- Gizlilik etkisi
- Yüksek
- Bütünlük etkisi
- Yüksek
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-125 · Out-of-bounds ReadCVSS vektörü
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/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 (4 daha)Daha az göster
- docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.static_memory_maximum_size
- github.com/bytecodealliance/wasmtime/commit/63fb30e4b4415455d47b3da5a19d79c12f4f2d1f
- github.com/bytecodealliance/wasmtime/security/advisories/GHSA-ff4p-7xrq-q5r8
- groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.