{"schemaVersion":3,"id":"CVE-2023-27477","aliases":["CGA-9m64-cvhg-g2rm","CGA-mqfg-2p3p-f993","GHSA-xm67-587q-r2vw","RUSTSEC-2023-0093"],"status":"published","duplicateOf":null,"title":null,"description":"wasmtime is a fast and secure runtime for WebAssembly. Wasmtime's code generation backend, Cranelift, has a bug on x86_64 platforms for the WebAssembly `i8x16.select` instruction which will produce the wrong results when the same operand is provided to the instruction and some of the selected indices are greater than 16. There is an off-by-one error in the calculation of the mask to the `pshufb` instruction which causes incorrect results to be returned if lanes are selected from the second vector. This codegen bug has been fixed in Wasmtiem 6.0.1, 5.0.1, and 4.0.1. Users are recommended to upgrade to these updated versions. If upgrading is not an option for you at this time, you can avoid this miscompilation by disabling the Wasm simd proposal. Additionally the bug is only present on x86_64 hosts. Other platforms such as AArch64 and s390x are not affected.","dates":{"published":"2023-03-08T00:00:00.000Z","modified":"2025-02-25T14:59:59.689Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","exploitability":4.1,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","exploitability":4.1,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","exploitability":4.1,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00624,"percentile":0.48975,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00624},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00624,"percentile":0.48975}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00624,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00624,"percentile":0.48975}]},"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-193","name":"Off-by-one Error","description":"A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/193.html"}],"affected":[{"vendor":"chainguard","product":"wasmtime","name":"wasmtime","label":"wasmtime","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/wasmtime","purlType":"apk","versions":[{"text":"< 6.0.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.0.1-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"wasmtime","name":"wasmtime","label":"wasmtime","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/wasmtime","purlType":"apk","versions":[{"text":"< 6.0.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.0.1-r0","eol":null,"hubHref":null},{"vendor":"bytecodealliance","product":"cranelift-codegen","name":"cranelift-codegen","label":"cranelift-codegen","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.84.0, < 0.91.1","noFixRecorded":false,"fixedIn":null},{"text":"0.92.0","noFixRecorded":false,"fixedIn":null},{"text":"0.93.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.84.0, < 0.91.1 | 0.92.0 | 0.93.0","eol":null,"hubHref":"/vendor/bytecodealliance/cranelift-codegen"},{"vendor":"bytecodealliance","product":"wasmtime","name":"wasmtime","label":"wasmtime","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"cranelift-codegen: >= 0.88.0, < 0.91.1","noFixRecorded":false,"fixedIn":null},{"text":"cranelift-codegen: >= 0.92.0, < 0.92.1","noFixRecorded":false,"fixedIn":null},{"text":"cranelift-codegen: >= 0.93.0, < 0.93.1","noFixRecorded":false,"fixedIn":null},{"text":"wasmtime: >= 0.37.0, < 4.0.1","noFixRecorded":false,"fixedIn":null},{"text":"wasmtime: >= 5.0.0, < 5.0.1","noFixRecorded":false,"fixedIn":null},{"text":"wasmtime: >= 6.0.0, < 6.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.37.0, < 4.0.1","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0","noFixRecorded":false,"fixedIn":null},{"text":"6.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"cranelift-codegen: >= 0.88.0, < 0.91.1 | cranelift-codegen: >= 0.92.0, < 0.92.1 | cranelift-codegen: >= 0.93.0, < 0.93.1 | wasmtime: >= 0.37.0, < 4.0.1 | wasmtime: >= 5.0.0, < 5.0.1 | wasmtime: >= 6.0.0, < 6.0.1 | ≥ 0.37.0, < 4.0.1 | 5.0.0 | 6.0.0","eol":null,"hubHref":"/vendor/bytecodealliance/wasmtime"},{"vendor":"Crates.Io","product":"cranelift-codegen","name":"cranelift-codegen","label":"cranelift-codegen","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/cranelift-codegen","purlType":"cargo","versions":[{"text":"≥ 0.88.0, < 0.91.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.92.0, < 0.92.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.93.0, < 0.93.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.88.0, < 0.91.1 | ≥ 0.92.0, < 0.92.1 | ≥ 0.93.0, < 0.93.1","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"wasmtime","name":"wasmtime","label":"wasmtime","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/wasmtime","purlType":"cargo","versions":[{"text":"≥ 1.0.0, < 4.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.0.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 4.0.1 | ≥ 5.0.0, < 5.0.1 | ≥ 6.0.0, < 6.0.1","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd","label":"docs.rs/wasmtime/latest/wasmtime/struct.Config.html","hostname":"docs.rs","tags":["WEB","Product"]},{"url":"https://github.com/webassembly/simd","label":"github.com/webassembly/simd","hostname":"github.com","tags":["PACKAGE","WEB","Not Applicable"]},{"url":"https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ","label":"groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ","hostname":"groups.google.com","tags":["WEB","Mailing List","Release Notes","Vendor Advisory"]},{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vw","label":"github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vw","hostname":"github.com","tags":["Advisory","WEB","Mitigation","Patch","Vendor Advisory"]},{"url":"https://github.com/bytecodealliance/wasmtime/commit/5dc2bbccbb363e474d2c9a1b8e38a89a43bbd5d1","label":"github.com/bytecodealliance/wasmtime/commit/5dc2bbccbb363e474d2c9a1b8e38a89a43bbd5d1","hostname":"github.com","tags":["FIX","WEB","Patch"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27477.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27477.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27477","label":"nvd.nist.gov/vuln/detail/CVE-2023-27477","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/bytecodealliance/wasmtime","label":"github.com/bytecodealliance/wasmtime","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0093.html","label":"rustsec.org/advisories/RUSTSEC-2023-0093.html","hostname":"rustsec.org","tags":["WEB","Advisory"]},{"url":"https://crates.io/crates/wasmtime","label":"crates.io/crates/wasmtime","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-5JCR-R8PM-HJVG","CGA-R89W-G3FX-79JW"]},"timeline":[{"kind":"published","date":"2023-03-08T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-25T14:59:59.689Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":17,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:11:57.754Z","stale":false,"partial":false}}