CVE-2023-41880

Published on: Not Yet Published

Last Modified on: 09/21/2023 04:17:00 PM UTC

CVE-2023-41880 - advisory for GHSA-gw5p-q8mj-p7gh

Source: Mitre Source: NIST CVE.ORG Print: PDF PDF
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Certain versions of Wasmtime from Bytecodealliance contain the following vulnerability:

Wasmtime is a standalone runtime for WebAssembly. Wasmtime versions from 10.0.0 to versions 10.02, 11.0.2, and 12.0.1 contain a miscompilation of the WebAssembly `i64x2.shr_s` instruction on x86_64 platforms when the shift amount is a constant value that is larger than 32. Only x86_64 is affected so all other targets are not affected by this. The miscompilation results in the instruction producing an incorrect result, namely the low 32-bits of the second lane of the vector are derived from the low 32-bits of the second lane of the input vector instead of the high 32-bits. The primary impact of this issue is that any WebAssembly program using the `i64x2.shr_s` with a constant shift amount larger than 32 may produce an incorrect result. This issue is not an escape from the WebAssembly sandbox. Execution of WebAssembly guest programs will still behave correctly with respect to memory sandboxing and isolation from the host. Wasmtime considers non-spec-compliant behavior as a security issue nonetheless. This issue was discovered through fuzzing of Wasmtime's code generator Cranelift. Wasmtime versions 10.0.2, 11.0.2, and 12.0.2 are all patched to no longer have this miscompilation. This issue only affects x86_64 hosts and the only workaround is to either scan for this pattern in wasm modules which is nontrivial or to disable the SIMD proposal for WebAssembly. Users prior to 10.0.0 are unaffected by this vulnerability.

  • CVE-2023-41880 has been assigned by URL Logo security-adviso[email protected] to track the vulnerability - currently rated as MEDIUM severity.
  • Affected Vendor/Software: URL Logo bytecodealliance - wasmtime version = >= 10.0.0, < 10.0.2
  • Affected Vendor/Software: URL Logo bytecodealliance - wasmtime version = >= 11.0.0, < 11.0.2
  • Affected Vendor/Software: URL Logo bytecodealliance - wasmtime version = >= 12.0.0, < 12.0.2

CVSS3 Score: 5.3 - MEDIUM

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
NETWORK LOW NONE NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED NONE LOW NONE

CVE References

Description Tags Link
Config in wasmtime - Rust docs.rs
text/html
URL Logo MISC docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd
Merge pull request from GHSA-gw5p-q8mj-p7gh · bytecodealliance/wasmtime@8d7eda1 · GitHub github.com
text/html
URL Logo MISC github.com/bytecodealliance/wasmtime/commit/8d7eda15b0badcbea83a7aac2d08f80788b59240
x64: Update i64x2 `sshr` implementation by alexcrichton · Pull Request #6372 · bytecodealliance/wasmtime · GitHub github.com
text/html
URL Logo MISC github.com/bytecodealliance/wasmtime/pull/6372
Miscompilation of wasm `i64x2.shr_s` instruction with constant input on x86_64 · Advisory · bytecodealliance/wasmtime · GitHub github.com
text/html
URL Logo MISC github.com/bytecodealliance/wasmtime/security/advisories/GHSA-gw5p-q8mj-p7gh#:~:text=Mailing%20list%20announcement
Miscompilation of wasm `i64x2.shr_s` instruction with constant input on x86_64 · Advisory · bytecodealliance/wasmtime · GitHub github.com
text/html
URL Logo MISC github.com/bytecodealliance/wasmtime/security/advisories/GHSA-gw5p-q8mj-p7gh

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationBytecodeallianceWasmtimeAllAllAllAll
  • cpe:2.3:a:bytecodealliance:wasmtime:*:*:*:*:*:rust:x64:*:
© CVE.report 2023 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report