Skip to main content
Network Thinking Solutions Logo

CVE-2023-27477

wasmtime is a fast and secure runtime for WebAssembly.

All CVEs
CVE-2023-27477Published 3/8/2023

wasmtime is a fast and secure runtime for WebAssembly.

Vendor advisory
CVSS4.3Medium

Overview

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.

Published
3/8/2023
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
cranelift-codegen
bytecodealliance
≥ 0.84.0, < 0.91.1

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
cranelift-codegen
bytecodealliance
0.92.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
cranelift-codegen
bytecodealliance
0.93.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
wasmtime
bytecodealliance
≥ 0.37.0, < 4.0.1

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
wasmtime
bytecodealliance
5.0.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
wasmtime
bytecodealliance
6.0.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
wasmtime
bytecodealliance
cranelift-codegen: >= 0.88.0, < 0.91.1

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
wasmtime
bytecodealliance
cranelift-codegen: >= 0.92.0, < 0.92.1

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
wasmtime
bytecodealliance
cranelift-codegen: >= 0.93.0, < 0.93.1

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
wasmtime
bytecodealliance
wasmtime: >= 0.37.0, < 4.0.1

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
wasmtime
bytecodealliance
wasmtime: >= 5.0.0, < 5.0.1

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
wasmtime
bytecodealliance
wasmtime: >= 6.0.0, < 6.0.1

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 4.3. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.