PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-58494 bytecodealliance CVE debrief

CVE-2026-58494 is a vulnerability in Wasmtime's WASI filesystem implementation that allows a guest with a read-only source file capability to overwrite that file by hard-linking it into another preopen that allows file writes. The vulnerability is caused by the WASI filesystem implementation not checking file permissions when creating hard links or renaming files. This allows an attacker to bypass `WasiCtxBuilder` per-preopen `FilePerms` and modify host files that were exposed as `FilePerms::READ`.

Vendor
bytecodealliance
Product
wasmtime-wasi
CVSS
MEDIUM 6.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-16
Original CVE updated
2026-10-16
Advisory published
2026-10-16
Advisory updated
2026-10-16

Who should care

Defenders responsible for Wasmtime-WASI deployments should assess exposure and verify versions to prevent potential file modifications. Defenders should prioritize verifying and updating Wasmtime-WASI versions to prevent potential file modifications. Security teams should review and restrict file permissions for WASI guests to prevent potential file modifications.

Why it matters

CVE-2026-58494 is a vulnerability in Wasmtime's WASI filesystem implementation that allows a guest with a read-only source file capability to overwrite that file by hard-linking it into another preopen that allows file writes. Defenders should prioritize verifying and updating Wasmtime-WASI versions to prevent potential file modifications.

  • Verify file permissions for WASI guests to prevent potential file modifications.
  • Restrict file writes for WASI guests to prevent potential file modifications.
  • Monitor for suspicious activity related to WASI filesystem interactions.

Technical summary

The vulnerability is caused by the WASI filesystem implementation not checking file permissions when creating hard links or renaming files. This allows a guest with a read-only source file capability to overwrite that file by hard-linking it into another preopen that allows file writes. The attack is possible through the wasip1, wasip2, and wasip3 interfaces to the WASI filesystem. The vulnerability allows an attacker to bypass `WasiCtxBuilder` per-preopen `FilePerms` and modify host files that were exposed as `FilePerms::READ`.

Defensive priority

Defenders should prioritize verifying and updating Wasmtime-WASI versions to prevent potential file modifications.

Recommended defensive actions

  • Verify and update Wasmtime-WASI versions to ensure the latest security patches are applied.
  • Review and restrict file permissions for WASI guests to prevent potential file modifications.
  • Monitor for suspicious activity related to WASI filesystem interactions.
  • Review compensating controls for exposed systems while remediation is scheduled and verified.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented.
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.

Evidence notes

The vulnerability is caused by the WASI filesystem implementation not checking file permissions when creating hard links or renaming files. The attack is possible through the wasip1, wasip2, and wasip3 interfaces to the WASI filesystem. The attack is also possible through an indirection of renaming a hardlink into another preopen. The vulnerability allows a guest with a read-only source file capability to overwrite that file by hard-linking it into another preopen that allows file writes.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-58494 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-58494

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-58494 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-58494

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination

    Unverified legacy reference

    URL: https://storage.googleapis.com/osv-vulnerabilities/crates.io/GHSA-4ch3-9j33-3pmj.json

    osv_dev

  • Source reference

    Unverified legacy reference

    URL: https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmj

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/bytecodealliance/wasmtime/pull/13725

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcd

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9e

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/bytecodealliance/wasmtime

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.