Heap-use-after-free vulnerability in wasmtime

wasmtime Updated 02 Oct 2025

Summary

19/07/2022
HIGH
No i
High
Not published

OSV-2022-597: Heap-use-after-free in .tmpgt0oOx. Affects wasmtime versions >= 08a60a0f082a68149218f4c82da04b39fac59611. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

wasmtime is an open-source runtime for WebAssembly, developed by the Bytecode Alliance. It allows executing WebAssembly modules outside of the web browser, enabling high-performance and secure execution of code. The runtime provides a set of APIs and tools for interacting with WebAssembly modules. However, a heap-use-after-free vulnerability has been discovered in the .tmpgt0oOx component of wasmtime.

Vulnerability Detail

The heap-use-after-free vulnerability in .tmpgt0oOx can lead to a crash due to a read of 8 bytes from a freed heap memory region. This vulnerability has been reported by OSS-Fuzz and can be triggered by calling the wasmtime_setjmp function. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. The vulnerability has been assigned a severity rating of HIGH.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

At the moment, there is no known workaround for this vulnerability. It is advised to apply the official fix as soon as it becomes available.

Conclusion

In conclusion, a heap-use-after-free vulnerability has been discovered in the .tmpgt0oOx component of wasmtime. This vulnerability can potentially be exploited by attackers to execute arbitrary code or cause a denial-of-service condition. Users are advised to update to a patched version of wasmtime as soon as it becomes available. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for wasmtime →

Share this vulnerability

FAQ

wasmtime is an open-source runtime for WebAssembly, allowing the execution of WebAssembly modules outside of the web browser.

A heap-use-after-free vulnerability occurs when a program attempts to access memory that has already been freed. This can lead to crashes, arbitrary code execution, or other security issues.

An attacker could exploit this vulnerability by triggering the heap-use-after-free condition, potentially leading to the execution of arbitrary code or causing a denial-of-service condition.

This vulnerability has been assigned a severity rating of HIGH.

Currently, there is no known workaround for this vulnerability. It is recommended to apply the official fix once it becomes available.

Related vulnerabilities

Recent vulnerabilities recorded for wasmtime.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback