Symlink bypasses filesystem sandbox in wasmer
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| wasmerio | wasmer | before 4.3.2 | 4.3.2 | Patch available | CNA |
| — | wasmer (crates.io) | up to 4.3.1 | — | No fix listed | GHSA-55f3-3qvg-8pv5 |
- wasmer Vendorwasmerio Affected before 4.3.2 Fixed in 4.3.2 Patch available CNA
- wasmer (crates.io) Vendor— Affected up to 4.3.1 Fixed in — No fix listed GHSA-55f3-3qvg-8pv5
Remediation
- Fix · CNA wasmer (wasmerio) Fixed in 4.3.2
Timeline
- 2026-10-02 Threatist record created from CVE-2024-38358
- 2026-10-03 Alias added: GHSA-55f3-3qvg-8pv5
References
Sources
- CVE-2024-38358 · CVE Program
- CVE-2024-38358 · NVD
- FIRST EPSS
- GHSA-55f3-3qvg-8pv5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences