{"id":"CVE-2026-118688","summary":"Wasmtime before 36.0.18, 37.0.0 before 48.0.6, and 49.0.0 before 49.0.3 Sandbox Escape via Symlink Rename","details":"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.","aliases":["GHSA-m9f7-9w4p-gv38","RUSTSEC-2026-0352"],"modified":"2026-11-05T21:16:11.365457755Z","published":"2026-10-28T18:59:56.965Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-61"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118688.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118688.json"},{"type":"ADVISORY","url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-m9f7-9w4p-gv38"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118688"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/wasmtime-before-36.0.18-37.0.0-before-48.0.6-and-49.0.0-before-49.0.3-sandbox-escape-via-symlink-rename"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bytecodealliance/wasmtime","events":[{"introduced":"0"},{"fixed":"c90f2dd4b712703c52e834c08f42e882ee278ba5"},{"introduced":"7b3d6ae79e9153a2477668062f5622c10333925f"},{"fixed":"72bc45bd197c46718df0c02b8d4cbc1cb610ab2d"},{"introduced":"17830bd3c0331d920a8aa38846eebc4d46d98c23"},{"fixed":"f96eabaa11a06086e4fb779ed1c1688481067ab9"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"36.0.18"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"37.0.0"},{"fixed":"48.0.6"}]},{"strategy":"StandardRange","range":[{"introduced":"49.0.0"},{"fixed":"49.0.3"}],"source":"AFFECTED_FIELD"}]}}],"versions":["v48.0.5","v36.0.17","v49.0.2","v48.0.4","v48.0.3","v49.0.1","v36.0.16","v49.0.0","v48.0.2","v36.0.15","v48.0.1","v36.0.14","v48.0.0","v36.0.13","v36.0.12","v36.0.11","v36.0.10","v36.0.9","v36.0.8","v36.0.7","v36.0.6","v36.0.5","v36.0.4","v36.0.3","v36.0.2","v36.0.1","v36.0.0","v0.35.0","v0.33.0","v0.34.0","v0.32.0","v0.31.0","v0.30.0","v0.29.0","v0.28.0","v0.27.0","v0.26.0","v0.25.0","v0.24.0","v0.23.0","v0.22.0","cranelift-v0.69.0","v0.21.0","v0.20.0","v0.19.0","v0.18.0","v0.17.0","v0.16.0","cranelift-v0.61.0","cranelift-v0.60.0","v0.12.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118688.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}