5.9

CVE-2022-31169: bytecodealliance wasmtime Incorrect Calculation

CVSS: 5.9v3.1MediumPublished
AliasesUBUNTU-CVE-2022-31169
Published 21-07-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-31169 is a medium (CVSS 5.9) Incorrect Calculation vulnerability in bytecodealliance wasmtime. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 59.8% of scored vulnerabilities.

Overall risk
24/100
0100
Low · default modelHow is this calculated?
CVSS score
5.9/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.92%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 21-07-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.92%

Chance of exploitation in the next 30 days

Percentile

60%

Versus all other CVEs

30-day change

+0.03 pp

From 0.90% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.92%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Ubuntu6 products
  • mozjs38All versions (No fix recorded)
  • mozjs52All versions (No fix recorded)
  • mozjs68All versions (No fix recorded)
  • mozjs78All versions (No fix recorded)
  • mozjs91All versions (No fix recorded)
Bytecodealliance1 product

2 vendors · 7 products

References

4 links