CVE-2022-39394
CVSS V2 None
CVSS V3 Critical 9.8
Description
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.
Overview
- CVE ID
- CVE-2022-39394
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2022-11-10T20:15:11
- Last Modified Date
- 2022-11-16T13:31:56
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* | 1 | OR | 1.0.2 | |
cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:* | 1 | OR | 2.0.0 | 2.0.2 |
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 9.8
- Base Severity
- CRITICAL
- Exploitability Score
- 3.9
- Impact Score
- 5.9
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2022-39394 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-39394 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-11-10 21:00:13 | Added to TrackCVE | |||
2022-12-07 17:37:02 | 2022-11-10T20:15Z | 2022-11-10T20:15:11 | CVE Published Date | updated |
2022-12-07 17:37:02 | 2022-11-16T13:31:56 | CVE Modified Date | updated | |
2022-12-07 17:37:02 | Analyzed | Vulnerability Status | updated | |
2022-12-07 17:37:04 | CPE Information | updated |