Vulnerability DatabaseGHSA-qrr7-2g7f-r9rg

GHSA-qrr7-2g7f-r9rg: 
Rust vulnerability analysis and mitigation

Summary

When wasmi is built with simd but without memory64, some v128.store8_lane and v128.store16_lane instructions seem to be decoded wrong. In debug builds this panics; in release builds I got wrong results and sometimes a crash. Default builds have memory64 and look fine.

Details

I think the decoder reads the offset of these instructions as a u64, while the encoder writes it as Offset, which is a u32 without memory64: https://github.com/wasmi-labs/wasmi/blob/05d2de3057c323a3f807ef23eb19e0c2ab58d2a8/crates/ir/src/decode/op.rs#L270-L276 It happens when the vector comes from a local and the offset is 65536 or more, or the store goes to a memory other than 0. Changing the field to pub offset: Offset fixed it for me. I have a small patch with a test if that helps.

Proof of concept

wasmi 2.0.2 with default-features = false, features = ["std", "validate", "simd"]: (module (memory (export "memory") 2) (func (export "_start") (local v128) (local.set 0 (v128.const i32x4 0x11223344 0x55667788 0x99aabbcc 0xddeeff00)) i32.const 0 local.get 0 v128.store8_lane offset=65536 3)) After _start, memory[65536] should be 0x11.

  • Debug: panic, "failed to decode OpCode ... invalid bit pattern".
  • Release: a MemoryOutOfBounds trap, and memory is not written. Some fuzzer modules (attached) crash with SIGSEGV in release. With memory64 on, all of them work as in Wasmtime.

Impact

Builds of wasmi 2.0.0-beta.4 to 2.0.2 with simd and without memory64. A module can crash the host or get wrong results. I am not sure whether it can do more.


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-r22c-jv85-9pj3HIGH7.5
  • Rust logoRust
  • hickory-net
NoYesNov 24, 2026
GHSA-p4cp-vhp5-73wjMEDIUM6.9
  • Rust logoRust
  • actix-http
NoYesNov 24, 2026
GHSA-qrr7-2g7f-r9rgHIGHN/A
  • Rust logoRust
  • wasmi
NoYesNov 24, 2026
GHSA-479r-5fmc-p9xqLOWN/A
  • Rust logoRust
  • hickory-net
NoYesNov 24, 2026
GHSA-qgw4-m8xx-p695MEDIUMN/A
  • Rust logoRust
  • hickory-net
NoYesNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management