# WASI path_open(TRUNCATE) bypasses \`FilePerms::WRITE\` host restriction

Advisory record · `GHSA-2r75-cxrj-cmph`

- **Identifiers:** `GHSA-2r75-cxrj-cmph` · `CVE-2026-47261` · `RUSTSEC-2026-0149`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-284](https://cwe.mitre.org/data/definitions/284.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 21 May 2026
- **Updated:** 12 Oct 2026
- **Reviewed by a person:** No

[Published by the maintainers](https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph) · not yet reviewed by GitHub. The bytecodealliance/wasmtime maintainers published this as a GitHub repository advisory; GitHub’s reviewed advisory replaces it here when it arrives.

Published by the bytecodealliance/wasmtime maintainers at 21 May 2026, 12:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `wasmtime-wasi` (crates.io): affected `>=0.0.0-0, <24.0.9 || >=25.0.0, <36.0.10 || >=37.0.0, <44.0.2 || >=45.0.0, <45.0.0`; fixed in `24.0.9`, `36.0.10`, `44.0.2`, `45.0.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The wasmtime-wasi crate, in the affected version ranges below 24.0.9, 25.0.0 through below 36.0.10, 37.0.0 through below 44.0.2, and 45.0.0 (the stated range ends at 45.0.0 exclusive), allows a WASI path_open call with truncation to bypass the FilePerms::WRITE host restriction. The source gives few details on the attacker's position or exact impact beyond the bypass of the write restriction. Upgrade wasmtime-wasi to 24.0.9, 36.0.10, 44.0.2, or 45.0.0 or later.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0036, the 29th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 21 May 2026, 19:37 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph)
- 31 Oct 2026, 14:24 UTC: First seen by agentprime
- 31 Oct 2026, 14:24 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/RUSTSEC-2026-0149)

## Sources

- [GitHub Advisory Database: GHSA-2r75-cxrj-cmph](https://github.com/advisories/GHSA-2r75-cxrj-cmph)
- [OSV: GHSA-2r75-cxrj-cmph](https://osv.dev/vulnerability/GHSA-2r75-cxrj-cmph)
- <https://crates.io/crates/wasmtime-wasi>
- <https://rustsec.org/advisories/RUSTSEC-2026-0149.html>
- <https://github.com/bytecodealliance/wasmtime/pull/13429>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-2r75-cxrj-cmph>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-2r75-cxrj-cmph/>. Everything for agents: <https://agentprime.io/llms.txt>.
