GHSA-h84q-m8rr-3v9q · Severity: low · Ecosystem: rust — wasmtime_trap_code C API function has out of bounds write vulnerability
Wasmtime is a standalone runtime for WebAssembly. Prior to version 2.0.2, there is a bug in Wasmtime's C API implementation where the definition of the `wasmtime_trap_code` does not match its declared signature in the `wasmtime/trap.h` header file. This discrepancy causes the function implementation to perform a 4-byte write into a 1-byte buffer provided by the caller. This can lead to three zero bytes being written beyond the 1-byte location provided by the caller. This bug has been patched and users should upgrade to Wasmtime 2.0.2. This bug can be worked around by providing a 4-byte buffer casted to a 1-byte buffer when calling `wasmtime_trap_code`. Users of the `wasmtime` crate are not affected by this issue, only users of the C API function `wasmtime_trap_code` are affected.
Conclusion & alert: CVE-2022-39394 is rated Low Risk (35.3/100): CVSS Low severity, with medium exploitation likelihood (EPSS 0.34%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-10 | 0.11% | 0.34% | +0.22% |
| 2 | 2025-11-21 | 0.17% | 0.11% | -0.05% |
| 3 | 2025-11-14 | — | 0.17% | — |
Full EPSS history (15 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 3.8 | 3.1 | LOW |
|
0.3 | 3.4 | [email protected] |
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
GHSA-h84q-m8rr-3v9q · Severity: low · Ecosystem: rust — wasmtime_trap_code C API function has out of bounds write vulnerability
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2022-39394 unimportant priority: Debian including 1 source packages (rust-wasmtime), 3 status rows across 3 suites (forky, sid, trixie): resolved 3. | https://security-tracker.debian.org/tracker/CVE-2022-39394 |
ubuntu
|
medium | CVE-2022-39394 medium priority: Ubuntu including 7 source packages (firefox, mozjs38, …), 58 status rows across 10 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, trusty, upstream, xenial): DNE 27, ignored 24, not-affected 5, needs-triage 2. | https://ubuntu.com/security/CVE-2022-39394 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| bytecodealliance | wasmtime | < 1.0.2 | cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* |
| bytecodealliance | wasmtime | >= 2.0.0, < 2.0.2 | cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* |
| URL | Tags |
|---|---|
| https://github.com/bytecodealliance/wasmtime/commit/087d9d7becf7422b3f872a3bcd5d97bb7ce7ff36 | Patch Third Party Advisory |
| https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-h84q-m8rr-3v9q | Third Party Advisory |