Advisory

GHSA-9ghp-w2hm-vfpf

Also known as: RUSTSEC-2024-0442

Summary

wasmtime_jit_debug Dumps Undefined Memory by JitDumpFile

Details

The unsound function dump_code_load_record uses from_raw_parts to directly convert the pointer addr and len into a slice without any validation and that memory block would be dumped.

Thus, the 'safe' function dump_code_load_record is actually 'unsafe' since it requires the caller to guarantee that the addr is valid and len must not overflow. Otherwise, the function could dump the memory into file illegally, causing memory leak.

> Note: this is an internal-only crate in the Wasmtime project not intended for external use and is more strongly signaled nowadays as of bytecodealliance/wasmtime#10963. Please open an issue in Wasmtime if you're using this crate directly.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-06-17 15:37 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

wasmtime-jit-debug

crates.io · All systems

Affected

  • introduced 0, fixed 24.0.0 (semver)

Fixed versions

24.0.0

Fix

  • Fixed version 24.0.0
    cargo update -p wasmtime-jit-debug --precise 24.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences