RUSTSEC-2024-0442
MEDIUMwasmtime_jit_debug Dumps Undefined Memory by `JitDumpFile`
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.
- Published
- 6 Jul 2024
- Last modified
- 28 Oct 2025
- Weakness
- CWE-119
- Also known as
- GHSA-9ghp-w2hm-vfpf
- Sources
- OSV GHSA-9ghp-w2hm-vfpfJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | wasmtime-jit-debug | < 24.0.0 | 24.0.0 |
| OSV | crates.io | wasmtime-jit-debug | >= 0.0.0-0, < 24.0.0 | 24.0.0 |
References
- https://github.com/bytecodealliance/wasmtime/issues/8905 · WEB, REPORT
- https://github.com/bytecodealliance/wasmtime/commit/b5e31a5c33725ab8a7dfbe8505c56b5cf282ffed · WEB
- https://github.com/bytecodealliance/wasmtime · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0442.html · WEB, ADVISORY
- https://crates.io/crates/wasmtime-jit-debug · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jul 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jun 2025)