Skip to main content
← All vulnerabilities
CVE-2024-38358GHSA-55F3-3QVG-8PV5

Symlink bypasses filesystem sandbox in wasmer

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.3.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

Wasmer is a web assembly (wasm) Runtime supporting WASIX, WASI and Emscripten. If the preopened directory has a symlink pointing outside, WASI programs can traverse the symlink and access host filesystem if the caller sets both `oflags::creat` and `rights::fd_write`. Programs can also crash the runtime by creating a symlink pointing outside with `path_symlink` and `path_open`ing the link. This issue has been addressed in commit `b9483d022` which has been included in release version 4.3.2. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • wasmerio wasmer

    fixed in 4.3.2

  • wasmercrates.io

    through 4.3.1

References 2

GitHub · wasmerio/wasmer