Security mailing lists by PureSourceCode

RUSTSEC-2024-0442

MEDIUM

wasmtime_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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.