# CVE-2023-41880: Miscompilation of wasm \`i64x2.shr\_s\` instruction with constant input on x86\_64

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.2
- **CVSS:** 2.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.81% (percentile 54, 2026-11-26)
- **CWE:** CWE-193
- **Aliases:** GHSA-gw5p-q8mj-p7gh, RUSTSEC-2023-0091
- **Published:** 2023-09-05T12:00:00.000Z
- **Modified:** 2026-10-12T18:00:06.813Z

## 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

## 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

- crates.io `wasmtime`: affected \>= 10.0.0, \< 10.0.2; fixed 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)

## Mitigation

- Upgrade wasmtime to one of 10.0.2, 11.0.2, 12.0.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-gw5p-q8mj-p7gh>
- vendor: <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-gw5p-q8mj-p7gh#:~:text=Mailing%20list%20announcement>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-41880>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2023-0091.html>
- patch: <https://github.com/bytecodealliance/wasmtime/pull/6372>
- patch: <https://github.com/bytecodealliance/wasmtime/commit/8d7eda15b0badcbea83a7aac2d08f80788b59240>
- other: <https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd>
- other: <https://github.com/bytecodealliance/wasmtime>
- other: <https://crates.io/crates/wasmtime>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-41880>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-gw5p-q8mj-p7gh> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2023-0091> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-41880> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-41880>
