{"schemaVersion":3,"id":"CVE-2026-47261","aliases":["UBUNTU-CVE-2026-47261","DEBIAN-CVE-2026-47261","CGA-6cxm-2wv3-2vh5","CGA-mfw4-crh8-xmm8","CGA-p4c3-5mp8-7qqw","CGA-xpvc-vq87-c5fx","GHSA-2r75-cxrj-cmph","RUSTSEC-2026-0149"],"status":"published","duplicateOf":null,"title":null,"description":"Wasmtime is a runtime for WebAssembly. In versions prior to 24.0.9, 36.0.10, and 44.0.2, when a filesystem preopen is given DirPerms::all() and FilePerms::READ without FilePerms::WRITE, this access control mechanism can be bypassed via the wasip2 descriptor.open-at or wasip1 path_open interfaces by opening a file with only the OpenFlags::TRUNCATE oflag. The root cause is that the clause handling OpenFlags::TRUNCATE in crates/wasi/src/filesystem.rs (Dir::open_at, lines 967–969) did not set open_mode |= OpenMode::WRITE;, which is later used for the access control check against FilePerms to determine whether opening the file is permitted; the single-line fix adds that missing assignment, after which the affected calls correctly fail with error-code.not-permitted and ERRNO_PERM respectively. Only wasmtime-wasi embeddings that combine DirPerms::MUTATE with FilePerms::READ are affected by this bug. In particular, the Wasmtime project's wasmtime-cli's use of wasmtime-wasi is not affected, because it always sets FilePerms::all() for all preopens. This issue has been fixed in versions 24.0.9, 36.0.10 and44.0.2.","dates":{"published":"2026-06-15T19:47:40.366Z","modified":"2026-06-16T12:46:04.260Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.005,"percentile":0.41636,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.14300000000000002,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00357},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.005,"percentile":0.41636}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.005,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.005,"percentile":0.41636}]},"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-284","name":"Improper Access Control","description":"The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/284.html"}],"affected":[{"vendor":"chainguard","product":"wizer","name":"wizer","label":"wizer","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wizer","purlType":"apk","versions":[{"text":"< 11.0.3-r12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 11.0.3-r12","eol":null,"hubHref":null},{"vendor":"chainguard","product":"zed","name":"zed","label":"zed","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/zed","purlType":"apk","versions":[{"text":"< 1.5.4-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.4-r1","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":"< 11.0.3-r12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 11.0.3-r12","eol":null,"hubHref":null},{"vendor":"wolfi","product":"zed","name":"zed","label":"zed","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/zed","purlType":"apk","versions":[{"text":"< 1.5.4-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.4-r1","eol":null,"hubHref":null},{"vendor":"bytecodealliance","product":"wasmtime","name":"wasmtime","label":"wasmtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 24.0.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0, < 36.0.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 37.0.0, < 44.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 24.0.9 | ≥ 25.0.0, < 36.0.10 | ≥ 37.0.0, < 44.0.2","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":"≥ 37.0.0, < 44.0.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0, < 36.0.10","noFixRecorded":false,"fixedIn":null},{"text":"< 24.0.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 45.0.0, < 45.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 37.0.0, < 44.0.2 | ≥ 25.0.0, < 36.0.10 | < 24.0.9 | ≥ 45.0.0, < 45.0.0","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.11+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 36.0.11+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":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph","label":"github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2r75-cxrj-cmph","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Advisory","WEB","Mitigation","Vendor Advisory"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.9","label":"github.com/bytecodealliance/wasmtime/releases/tag/v24.0.9","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.10","label":"github.com/bytecodealliance/wasmtime/releases/tag/v36.0.10","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v44.0.2","label":"github.com/bytecodealliance/wasmtime/releases/tag/v44.0.2","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.0","label":"github.com/bytecodealliance/wasmtime/releases/tag/v45.0.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://ubuntu.com/security/CVE-2026-47261","label":"ubuntu.com/security/CVE-2026-47261","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-47261","label":"www.cve.org/CVERecord?id=CVE-2026-47261","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-47261","label":"security-tracker.debian.org/tracker/CVE-2026-47261","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47261.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47261.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47261","label":"nvd.nist.gov/vuln/detail/CVE-2026-47261","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/bytecodealliance/wasmtime","label":"github.com/bytecodealliance/wasmtime","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0149.html","label":"rustsec.org/advisories/RUSTSEC-2026-0149.html","hostname":"rustsec.org","tags":["WEB","Advisory"]},{"url":"https://crates.io/crates/wasmtime-wasi","label":"crates.io/crates/wasmtime-wasi","hostname":"crates.io","tags":["PACKAGE"]},{"url":"https://github.com/bytecodealliance/wasmtime/pull/13429","label":"github.com/bytecodealliance/wasmtime/pull/13429","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-8JMW-F257-FJ7M"]},"timeline":[{"kind":"published","date":"2026-06-15T19:47:40.366Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-16T12:46:04.260Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T07:58:25.893Z","stale":false,"partial":false}}