Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRun as guest with sandbox write access
-
DeliveryCreate relative symlink to host path outside sandbox
-
ExploitRename symlink source with trailing slash
-
Executionrenameat follows symlink on macOS/FreeBSD host
-
PersistExternal host directory relocated into sandbox
-
ImpactRead and write host files outside sandbox
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
|
| Exploitation Conditions | Three concrete conditions must all hold. (1) The host operating system must be macOS or FreeBSD - Linux and Windows are explicitly not affected because their renameat does not follow a symlink with a trailing slash. (2) The embedding application must run an affected wasmtime-wasi version (<=36.0.17, 37.0.0 through 48.0.5, or 49.0.0 through 49.0.2) and must have granted the guest write access to at least one directory within its sandbox. (3) The guest must be able to create a symlink and issue a rename - and only symlinks pointing to directories can be used to escape. Limiting factors: the attacker must already be executing as a guest inside the sandbox (not a wholly external/unauthenticated actor), the host-OS restriction excludes the common Linux/Windows server case, and only directory symlinks work; no end-user interaction is required once a malicious guest runs. |
| Impact | This is a full filesystem sandbox escape in wasmtime-wasi rated CVSS 4.0 8.8, and the technical impact is genuinely high: a guest can both read and write arbitrary host directories, defeating the core security guarantee of the runtime. However, the exploitation surface is materially constrained and the raw score should be read against several tempering signals. Attack requirements are present (AT:P in the supplied vector) because only macOS and FreeBSD hosts are affected - Linux and Windows are explicitly NOT vulnerable because their renameat does not follow a trailing-slash symlink - so a large share of real deployments (which skew to Linux servers) carry no exposure. The attacker must also already be a guest granted write access to a sandbox directory (PR:L), meaning this matters specifically to embedders who run untrusted or semi-trusted WASM guests on macOS/FreeBSD. No EPSS score was provided and the vulnerability is not on the CISA KEV list, so there is no evidence of active exploitation; the vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious-but-not-under-attack issue. No verified working exploit code was supplied - only the GHSA and VulnCheck advisories, which describe the mechanism precisely. One signal to flag explicitly: the supplied CVSS 4.0 vector uses AV:N, but the actual trigger is in-process execution of malicious guest code, which is better modeled as a local execution context (AV:L) whose network reachability depends entirely on how the embedding application delivers guests - verify against your deployment. Net: a real priority to patch for anyone running untrusted guests on macOS/FreeBSD, and effectively not applicable on Linux/Windows. |
| Exploit ScenarioDerived | On a macOS or FreeBSD host running an affected wasmtime-wasi version, a malicious or compromised WASM guest that has been granted write access to a preopened directory creates a relative symlink pointing outside its sandbox (e.g. symlink("../outside", "up")) and then renames "up/" to a path inside its sandbox. The host kernel follows the trailing-slash symlink during the renameat syscall and moves the external host directory into the sandbox, after which the guest can read and write its contents. No public exploit code was identified at time of analysis, but the GHSA advisory describes the trigger in full. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 28, 2026
Filesystem sandbox escape in Wasmtime's wasmtime-wasi crate allows a sandboxed guest on macOS or FreeBSD to move host directories accessible to the host process into its own sandbox and then read or write their contents, defeating the runtime's core isolation guarantee. Affected releases are 36.0.17 and earlier, 37.0.0 through 48.0.5, and 49.0.0 through 49.0.2; Linux and Windows hosts are explicitly not affected. Exploitation requires a guest already executing with write access to at least one sandbox directory, and no public exploit code has been identified at time of analysis - though the vendor notes the bug affects every published version as of the advisory and provides no workaround other than upgrading.
RemediationAI
Vendor-released patches: Wasmtime 36.0.18, 48.0.6, and 49.0.3, each containing a fixed wasmtime-wasi crate; upgrade to the release matching your maintenance branch and rebuild any embedding application that vendors the crate. The vendor states there is no known workaround, so upgrading is the only complete fix - restricting guest write access to preopened directories reduces exposure but does not remove the flaw when guests legitimately need rename capability, and the issue does not affect Linux or Windows hosts, so moving affected workloads to those platforms avoids this specific bug if an upgrade cannot be scheduled immediately. Advisory details are at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-m9f7-9w4p-gv38.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
wasmtime-wasi implements the WASI preview filesystem interface on top of capability-style preopened directories, so guests are expected to be confined to paths they were explicitly granted. When handling a rename, the crate stripped a trailing slash from the source path to resolve the parent directory but then re-appended the slash to the final path component before invoking the host renameat syscall. On macOS and FreeBSD, renameat follows a trailing-slash symlink to a directory, so a guest that creates a relative symlink such as "up/" pointing outside its sandbox can rename that path into the sandbox and cause the kernel to relocate the linked host directory. This is a classic CWE-61 UNIX symbolic link following flaw; only symlinks targeting directories can be used this way, and Linux and Windows are unaffected because their renameat implementations do not follow a trailing-slash symlink. The issue is closely related to GHSA-vqjp-4c8c-hfgg (and to the remove_dir case tracked as bytecodealliance/wasmtime#14663); that earlier fix changed how paths are opened but not how they are renamed, which is why all then-published versions were vulnerable. The assessed vector (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L) reflects a low-privileged guest already inside the sandbox, no user interaction, and a scope change because the escape crosses from guest into host filesystem boundaries.
Know when Freebsd gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L
Exploitation runs as in-process guest code (AV:L) requiring a granted writable sandbox directory (PR:L); the sandbox escape to the host filesystem is a scope change (S:C) giving read/write impact with minor availability effect.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
wasmtime-wasi in Wasmtime before 36.0.18, 37.0.0 before 48.0.6, and 49.0.0 before 49.0.3 re-appends a trailing slash to rename source paths, causing renameat on macOS and FreeBSD hosts to follow directory symlinks. A guest with sandbox write access can rename a relative symlink such as "up/" to move host directories into its sandbox and read or write them.
Technical POC Analysis
CWE-61, UNIX Symbolic Link (Symlink) Following, in the filesystem implementation of the wasmtime-wasi crate (Rust).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-118688 is a high-severity sandbox escape in Wasmtime's wasmtime-wasi crate that undermines the core isolation guarantee for organizations running untrusted WebAssembly workloads on macOS or FreeBSD hosts. A sandboxed guest could access host directories outside its intended boundary, exposing sensitive data and enabling unauthorized modifications, which should concern leadership given the potential for data breaches and erosion of trust in the runtime security model.
No vendor-released patch identified at time of analysis. Interim mitigations include running affected workloads on Linux or Windows hosts (explicitly not affected), limiting guest write access to sandbox directories, and restricting directory permissions to minimize exposure.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and
The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess
Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due
The RFC 5011 implementation in rdata.c in ISC BIND 9.7.x and 9.8.x before 9.8.5-P2, 9.8.6b1, 9.9.x before 9.9.3-P2, and
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEAS
An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used
The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w
In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1
EUVD-2026-112393
GHSA-63fr-xrxj-8wrx
NVD
CVE.org
Exploit-DB