Rust advisories / wasmtime-jit-debug
Unsound MediumRUSTSEC-2024-0442 · wasmtime-jit-debug
RUSTSEC-2024-0442: Dump Undefined Memory by `JitDumpFile`
Short answerwasmtime-jit-debug has an API that can cause undefined behaviour from safe code: Dump Undefined Memory by `JitDumpFile`. Fixed in 24.0.0.
| Crate | wasmtime-jit-debug |
|---|---|
| Type | Unsound (memory-exposure) |
| Affected versions | Before 24.0.0. |
| Fixed in | 24.0.0 |
| Severity | Medium (GitHub rating) |
| Published | 2024-07-06 |
| Last changed | 2025-10-28 |
| Also known as | GHSA-9ghp-w2hm-vfpf |
| Affected functions | wasmtime_jit_debug::perf_jitdump::JitDumpFile::dump_code_load_record |
What to do
- See which version you have:
cargo tree -i wasmtime-jit-debug(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p wasmtime-jit-debug. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplewasmtime-jit-debug = "24.0.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/wasmtime-jit-debug
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0442.html
- Report: github.com/bytecodealliance/wasmtime/issues/8905
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?