{"schemaVersion":3,"id":"CVE-2026-58494","aliases":["UBUNTU-CVE-2026-58494","DEBIAN-CVE-2026-58494","RUSTSEC-2026-0188","GHSA-4ch3-9j33-3pmj","CGA-p2r4-3mxf-rm22"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-07-08T20:22:16.039Z","modified":"2026-07-09T13:28:57.055Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":5.1,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":5.1,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":5.1,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00171,"percentile":0.0611,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00171},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00171,"percentile":0.0611}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00171,"percentile":0.0611}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-281","name":"Improper Preservation of Permissions","description":"The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/281.html"},{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"chainguard","product":"wizer","name":"wizer","label":"wizer","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wizer","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"wizer","name":"wizer","label":"wizer","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/wizer","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"bytecodealliance","product":"wasmtime","name":"wasmtime","label":"wasmtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 24.0.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0, < 36.0.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 37.0.0, < 45.0.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 46.0.0, < 46.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 24.0.11 | ≥ 25.0.0, < 36.0.12 | ≥ 37.0.0, < 45.0.3 | ≥ 46.0.0, < 46.0.1","eol":null,"hubHref":"/vendor/bytecodealliance/wasmtime"},{"vendor":"Crates.Io","product":"wasmtime-wasi","name":"wasmtime-wasi","label":"wasmtime-wasi","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/wasmtime-wasi","purlType":"cargo","versions":[{"text":"< 24.0.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0, < 36.0.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 37.0.0, < 45.0.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 46.0.0, < 46.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 24.0.11 | ≥ 25.0.0, < 36.0.12 | ≥ 37.0.0, < 45.0.3 | ≥ 46.0.0, < 46.0.1","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-wasmtime","name":"rust-wasmtime","label":"rust-wasmtime","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-wasmtime","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 36.0.12+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 36.0.12+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rust-wasmtime","name":"rust-wasmtime","label":"rust-wasmtime","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rust-wasmtime","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmj","label":"github.com/bytecodealliance/wasmtime/security/advisories/GHSA-4ch3-9j33-3pmj","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c","label":"github.com/bytecodealliance/wasmtime/commit/5ddfd5f1ef28f2041fa07d237ad0336e167b0e0c","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367","label":"github.com/bytecodealliance/wasmtime/commit/7db94cdcf0c79cb3dfde884b534b653f2dd83367","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcd","label":"github.com/bytecodealliance/wasmtime/commit/8a250aac0962ca1364b5f16525720e9d0b39edcd","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9e","label":"github.com/bytecodealliance/wasmtime/commit/d3ceb56ec35f39e02496eeb4e2d9c7f4fb964d9e","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11","label":"github.com/bytecodealliance/wasmtime/releases/tag/v24.0.11","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12","label":"github.com/bytecodealliance/wasmtime/releases/tag/v36.0.12","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3","label":"github.com/bytecodealliance/wasmtime/releases/tag/v45.0.3","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1","label":"github.com/bytecodealliance/wasmtime/releases/tag/v46.0.1","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB"]},{"url":"https://ubuntu.com/security/CVE-2026-58494","label":"ubuntu.com/security/CVE-2026-58494","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-58494","label":"www.cve.org/CVERecord?id=CVE-2026-58494","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-58494","label":"security-tracker.debian.org/tracker/CVE-2026-58494","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://crates.io/crates/wasmtime-wasi","label":"crates.io/crates/wasmtime-wasi","hostname":"crates.io","tags":["PACKAGE"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0188.html","label":"rustsec.org/advisories/RUSTSEC-2026-0188.html","hostname":"rustsec.org","tags":["Advisory","WEB"]},{"url":"https://github.com/bytecodealliance/wasmtime/pull/13725","label":"github.com/bytecodealliance/wasmtime/pull/13725","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58494","label":"nvd.nist.gov/vuln/detail/CVE-2026-58494","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/bytecodealliance/wasmtime","label":"github.com/bytecodealliance/wasmtime","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-07-08T20:22:16.039Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-09T13:28:57.055Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:39:21.477Z","stale":false,"partial":false}}