CVE-2023-41880
Miscompilation of wasm `i64x2.shr_s` instruction with constant input on x86_64
Also known as GHSA-gw5p-q8mj-p7gh, RUSTSEC-2023-0091
Mitigation
- Upgrade wasmtime to one of 10.0.2, 11.0.2, 12.0.2 (or later in the same release line).
Who should check
- Projects that depend on crates.io package wasmtime (>= 10.0.0, < 10.0.2)
- Anyone running bytecodealliance wasmtime >= 10.0.0, < 10.0.2; >= 11.0.0, < 11.0.2; >= 12.0.0, < 12.0.2
Vulnerability facts
- Affected
- wasmtime >= 10.0.0, < 10.0.2
- Fixed in
- 10.0.2, 11.0.2, 12.0.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 2.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.81% chance of exploitation in 30 days (percentile 54, 2026-11-26)
- CWE
- CWE-193
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io wasmtime | >= 10.0.0, < 10.0.2 | 10.0.2, 11.0.2, 12.0.2 | osv |
| bytecodealliance wasmtime | >= 10.0.0, < 10.0.2; >= 11.0.0, < 11.0.2; >= 12.0.0, < 12.0.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-41880. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-41880.md Affected: wasmtime >= 10.0.0, < 10.0.2 Fixed in: 10.0.2, 11.0.2, 12.0.2 Steps: 1. Search this machine and project for wasmtime (crates.io), bytecodealliance wasmtime: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-gw5p-q8mj-p7gh
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-gw5p-q8mj-p7gh#:~:text=Mailing%20list%20announcement
- https://nvd.nist.gov/vuln/detail/CVE-2023-41880
- https://rustsec.org/advisories/RUSTSEC-2023-0091.html
Patches
FAQ
Is CVE-2023-41880 being exploited?
There is no confirmed exploitation: CVE-2023-41880 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-41880?
Low: CVSS 2.2 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-41880?
wasmtime >= 10.0.0, < 10.0.2.
Is there a fix for CVE-2023-41880?
Yes. Fixed in 10.0.2, 11.0.2, 12.0.2. Upgrade wasmtime to one of 10.0.2, 11.0.2, 12.0.2 (or later in the same release line).
How do I check if I'm affected by CVE-2023-41880?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.