Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. wasmtime-jit-debug
  4. ›
  5. GHSA-9ghp-w2hm-vfpf

GHSA-9ghp-w2hm-vfpf: wasmtime_jit_debug Dumps Undefined Memory by `JitDumpFile`

June 17, 2025

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

  • github.com/advisories/GHSA-9ghp-w2hm-vfpf
  • github.com/bytecodealliance/wasmtime
  • github.com/bytecodealliance/wasmtime/commit/b5e31a5c33725ab8a7dfbe8505c56b5cf282ffed
  • github.com/bytecodealliance/wasmtime/issues/8905
  • rustsec.org/advisories/RUSTSEC-2024-0442.html

Code Behaviors & Features

Detect and mitigate GHSA-9ghp-w2hm-vfpf with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 24.0.0

Fixed versions

  • 24.0.0

Solution

Upgrade to version 24.0.0 or above.

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

cargo/wasmtime-jit-debug/GHSA-9ghp-w2hm-vfpf.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:32 +0000.