CVE-2026-58494

Source
https://cve.org/CVERecord?id=CVE-2026-58494
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58494.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-58494
Aliases
Downstream
Published
2026-07-08T20:22:16.039Z
Modified
2026-07-11T03:53:40.264050525Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N CVSS Calculator
Summary
Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination
Details

Wasmtime is a runtime for WebAssembly. Prior to 24.0.11, 36.0.12, 45.0.3, and 46.0.1, wasmtime-wasi hard-link creation and renaming check directory permissions but not matching FilePerms on source and destination preopens, allowing a WASI guest with a read-only source file capability to overwrite host files exposed as FilePerms::READ through wasip1, wasip2, or wasip3 filesystem interfaces. This issue is fixed in versions 24.0.11, 36.0.12, 45.0.3, and 46.0.1.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58494.json",
    "cwe_ids": [
        "CWE-281",
        "CWE-863"
    ],
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/bytecodealliance/wasmtime

Affected ranges

Type
GIT
Repo
https://github.com/bytecodealliance/wasmtime
Events
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "24.0.11"
        },
        {
            "introduced": "25.0.0"
        },
        {
            "fixed": "36.0.12"
        },
        {
            "introduced": "37.0.0"
        },
        {
            "fixed": "45.0.3"
        },
        {
            "introduced": "46.0.0"
        },
        {
            "fixed": "46.0.1"
        }
    ]
}

Affected versions

cranelift-v0.*
cranelift-v0.60.0
cranelift-v0.61.0
cranelift-v0.69.0
Other
dev
v0.*
v0.12.0
v0.16.0
v0.17.0
v0.18.0
v0.19.0
v0.20.0
v0.21.0
v0.22.0
v0.23.0
v0.24.0
v0.25.0
v0.26.0
v0.27.0
v0.28.0
v0.29.0
v0.30.0
v0.31.0
v0.32.0
v0.33.0
v0.34.0
v0.35.0
v24.*
v24.0.0
v24.0.1
v24.0.10
v24.0.2
v24.0.3
v24.0.4
v24.0.5
v24.0.6
v24.0.7
v24.0.8
v24.0.9
v36.*
v36.0.0
v36.0.1
v36.0.10
v36.0.11
v36.0.2
v36.0.3
v36.0.4
v36.0.5
v36.0.6
v36.0.7
v36.0.8
v36.0.9
v45.*
v45.0.0
v45.0.1
v45.0.2
v46.*
v46.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58494.json"