Filesystem Sandbox Escape in Wasmtime: Trailing Slash Vulnerability

wasmtime Updated 31 Aug 2026

Summary

20/08/2026
N/A
Yes i
High
8.8

RUSTSEC-2026-0269: Filesystem sandbox escape when paths or symlinks contain trailing slashes. Affects wasmtime across 4 version ranges.

>= 0.0.0-0, < 24.0.13 >= 25.0.0, < 36.0.14 >= 37.0.0, < 46.0.3 >= 47.0.0, < 47.0.4

Fixed in 4 releases; the minimum fixed version depends on the release line you run. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Wasmtime is a standalone JIT-style runtime for WebAssembly, designed to execute WebAssembly code efficiently and securely. It provides a sandboxed environment for running untrusted code, making it a popular choice for applications that require safe execution of potentially harmful code. However, a recent vulnerability has been identified that allows for a filesystem sandbox escape when paths or symlinks contain trailing slashes, which could lead to unauthorized access to the host filesystem.

Vulnerability Detail

The vulnerability arises from improper handling of paths and symlinks in Wasmtime, specifically when they contain trailing slashes. This flaw can be exploited by an attacker to escape the intended sandbox environment, potentially gaining access to sensitive files on the host system. The CVSS score of this vulnerability is 8.8, indicating a high severity level. Attackers could leverage this issue to execute arbitrary code or access confidential data, posing significant risks to applications relying on Wasmtime for secure execution.

How To Fix

Latest published version: 50.0.0 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 0.0.0-0, < 24.0.13 24.0.13
  • >= 25.0.0, < 36.0.14 36.0.14
  • >= 37.0.0, < 46.0.3 46.0.3
  • >= 47.0.0, < 47.0.4 47.0.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, ensure that any paths or symlinks used in your application do not contain trailing slashes. This can help mitigate the risk of filesystem sandbox escape until the package is updated to a secure version.

Conclusion

The filesystem sandbox escape vulnerability in Wasmtime poses significant risks to applications using this package. It is crucial to update to the latest patched versions to mitigate these risks and ensure the security of your application. Additionally, implementing workarounds can help reduce exposure until an update is applied.

See every vulnerability recorded for wasmtime →

Share this vulnerability

FAQ

The vulnerability allows for a filesystem sandbox escape when paths or symlinks contain trailing slashes, potentially exposing the host filesystem.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability could lead to unauthorized access to sensitive files and execution of arbitrary code on the host system.

The CVSS score of this vulnerability is 8.8, indicating a high severity level.

Update your Cargo.toml file to specify a patched version of Wasmtime, such as 47.0.4, and run 'cargo update' to install the update.

Related vulnerabilities

Recent vulnerabilities recorded for wasmtime.

How To Fix

Latest published version: 50.0.0 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 0.0.0-0, < 24.0.13 24.0.13
  • >= 25.0.0, < 36.0.14 36.0.14
  • >= 37.0.0, < 46.0.3 46.0.3
  • >= 47.0.0, < 47.0.4 47.0.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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