Amenazas en vivo

Todas las CVE / Bytecodealliance

CVE-2022-31169Bytecodealliance Cranelift-codegen

Alta 7.5 Sin autenticación

Prioridad
60
CVSS 3.1
7.5
EPSS
1.0%
probabilidad de explotación en 30 días · percentil 61
Requiere autenticación
No
Publicada
22 jul 2022
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-682
SSVC (CISA)
Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Qué pasa

Wasmtime is a standalone runtime for WebAssembly. There is a bug in Wasmtime's code generator, Cranelift, for AArch64 targets where constant divisors can result in incorrect division results at runtime. This affects Wasmtime prior to version 0.38.2 and Cranelift prior to 0.85.2. This issue only affects the AArch64 platform. Other platforms are not affected. The translation rules for constants did not take into account whether sign or zero-extension should happen which resulted in an incorrect value being placed into a register when a division was encountered. The impact of this bug is that programs executing within the WebAssembly sandbox would not behave according to the WebAssembly specification. This means that it is hypothetically possible for execution within the sandbox to go awry and WebAssembly programs could produce unexpected results. This should not impact hosts executing WebAssembly but does affect the correctness of guest programs. This bug has been patched in Wasmtime version 0.38.2 and cranelift-codegen 0.85.2. There are no known workarounds.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Cranelift-codegen.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
crates.io cranelift-codegen < 0.85.2 0.85.2 cargo update -p cranelift-codegen --precise 0.85.2
crates.io wasmtime < 0.38.2 0.38.2 cargo update -p wasmtime --precise 0.38.2
crates.io wasmtime ≥ 0.34.0 < 0.34.1 0.34.1 cargo update -p wasmtime --precise 0.34.1
crates.io wasmtime < 0.33.1 0.33.1 cargo update -p wasmtime --precise 0.33.1
crates.io wasmtime ≥ 0.0.0-0 < 0.33.1 0.33.1 cargo update -p wasmtime --precise 0.33.1
crates.io wasmtime ≥ 0.34.0 < 0.34.1 0.34.1 cargo update -p wasmtime --precise 0.34.1
crates.io wasmtime ≥ 0.0.0-0 < 0.38.2 0.38.2 cargo update -p wasmtime --precise 0.38.2

Según OSV / GitHub Advisories (GHSA-7f6x-jwh5-m9r4, GHSA-88xq-w8cq-xfg7, RUSTSEC-2022-0096, RUSTSEC-2022-0101). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
bytecodealliancecranelift-codegen< 0.85.1
bytecodealliancewasmtime< 0.38.1

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.