CVE-2023-27477
Published Mar 8, 2023
Last updated 2 years ago
Overview
- Description
- wasmtime is a fast and secure runtime for WebAssembly. Wasmtime's code generation backend, Cranelift, has a bug on x86_64 platforms for the WebAssembly `i8x16.select` instruction which will produce the wrong results when the same operand is provided to the instruction and some of the selected indices are greater than 16. There is an off-by-one error in the calculation of the mask to the `pshufb` instruction which causes incorrect results to be returned if lanes are selected from the second vector. This codegen bug has been fixed in Wasmtiem 6.0.1, 5.0.1, and 4.0.1. Users are recommended to upgrade to these updated versions. If upgrading is not an option for you at this time, you can avoid this miscompilation by disabling the Wasm simd proposal. Additionally the bug is only present on x86_64 hosts. Other platforms such as AArch64 and s390x are not affected.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
Social media
- Hype score
- Not currently trending
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 4.3
- Impact score
- 1.4
- Exploitability score
- 2.8
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- Severity
- MEDIUM
Weaknesses
- security-advisories@github.com
- CWE-193
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:bytecodealliance:cranelift-codegen:*:*:*:*:*:rust:*:*", "vulnerable": true, "matchCriteriaId": "DBCFE132-FEDA-4A43-AE02-08E150E411D7", "versionEndExcluding": "0.91.1", "versionStartIncluding": "0.84.0" }, { "criteria": "cpe:2.3:a:bytecodealliance:cranelift-codegen:0.92.0:*:*:*:*:rust:*:*", "vulnerable": true, "matchCriteriaId": "7D7B0DE4-0071-4056-A243-D0BB71963F93" }, { "criteria": "cpe:2.3:a:bytecodealliance:cranelift-codegen:0.93.0:*:*:*:*:rust:*:*", "vulnerable": true, "matchCriteriaId": "0EC7D2FC-6423-45AE-8F82-A37F93C17285" }, { "criteria": "cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:*:*", "vulnerable": true, "matchCriteriaId": "DD965E87-91DE-4FD2-8AED-37274050D01F", "versionEndExcluding": "4.0.1", "versionStartIncluding": "0.37.0" }, { "criteria": "cpe:2.3:a:bytecodealliance:wasmtime:5.0.0:*:*:*:*:rust:*:*", "vulnerable": true, "matchCriteriaId": "87B4AC93-F648-4E7B-9FC7-53D885110E35" }, { "criteria": "cpe:2.3:a:bytecodealliance:wasmtime:6.0.0:*:*:*:*:rust:*:*", "vulnerable": true, "matchCriteriaId": "A21E7233-1DAD-449F-A48F-05BE3DE8E2E0" } ], "operator": "OR" } ] } ]