Lookup for vulnerable packages by Package URL.

Purlpkg:conan/wasmtime@6.0.1
Typeconan
Namespace
Namewasmtime
Version6.0.1
Qualifiers
Subpath
Is_vulnerablefalse
Next_non_vulnerable_version12.0.2
Latest_non_vulnerable_version12.0.2
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
url VCID-2bd1-bkqg-37g2
vulnerability_id VCID-2bd1-bkqg-37g2
summary
Out-of-bounds Read
wasmtime is a fast and secure runtime for WebAssembly. In affected versions wasmtime's code generator, Cranelift, has a bug on x86_64 targets where address-mode computation mistakenly would calculate a 35-bit effective address instead of WebAssembly's defined 33-bit effective address. This bug means that, with default codegen settings, a wasm-controlled load/store operation could read/write addresses up to 35 bits away from the base of linear memory. Due to this bug, however, addresses up to `0xffffffff * 8 + 0x7ffffffc = 36507222004 = ~34G` bytes away from the base of linear memory are possible from guest code. This means that the virtual memory 6G away from the base of linear memory up to ~34G away can be read/written by a malicious module. A guest module can, without the knowledge of the embedder, read/write memory in this region. The memory may belong to other WebAssembly instances when using the pooling allocator, for example. Affected embedders are recommended to analyze preexisting wasm modules to see if they're affected by the incorrect codegen rules and possibly correlate that with an anomalous number of traps during historical execution to locate possibly suspicious modules. The specific bug in Cranelift's x86_64 backend is that a WebAssembly address which is left-shifted by a constant amount from 1 to 3 will get folded into x86_64's addressing modes which perform shifts. For example `(i32.load (i32.shl (local.get 0) (i32.const 3)))` loads from the WebAssembly address `$local0 << 3`. When translated to Cranelift the `$local0 << 3` computation, a 32-bit value, is zero-extended to a 64-bit value and then added to the base address of linear memory. Cranelift would generate an instruction of the form `movl (%base, %local0, 8), %dst` which calculates `%base + %local0 << 3`. The bug here, however, is that the address computation happens with 64-bit values, where the `$local0 << 3` computation was supposed to be truncated to a a 32-bit value. This means that `%local0`, which can use up to 32-bits for an address, gets 3 extra bits of address space to be accessible via this `movl` instruction. The fix in Cranelift is to remove the erroneous lowering rules in the backend which handle these zero-extended expression. The above example is then translated to `movl %local0, %temp; shl $3, %temp; movl (%base, %temp), %dst` which correctly truncates the intermediate computation of `%local0 << 3` to 32-bits inside the `%temp` register which is then added to the `%base` value. Wasmtime version 4.0.1, 5.0.1, and 6.0.1 have been released and have all been patched to no longer contain the erroneous lowering rules. While updating Wasmtime is recommended, there are a number of possible workarounds that embedders can employ to mitigate this issue if updating is not possible. Note that none of these workarounds are on-by-default and require explicit configuration: 1. The `Config::static_memory_maximum_size(0)` option can be used to force all accesses to linear memory to be explicitly bounds-checked. This will perform a bounds check separately from the address-mode computation which correctly calculates the effective address of a load/store. Note that this can have a large impact on the execution performance of WebAssembly modules. 2. The `Config::static_memory_guard_size(1 << 36)` option can be used to greatly increase the guard pages placed after linear memory. This will guarantee that memory accesses up-to-34G away are guaranteed to be semantically correct by reserving unmapped memory for the instance. Note that this reserves a very large amount of virtual memory per-instances and can greatly reduce the maximum number of concurrent instances being run. 3. If using a non-x86_64 host is possible, then that will also work around this bug. This bug does not affect Wasmtime's or Cranelift's AArch64 backend, for example.
references
0
reference_url https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.static_memory_guard_size
reference_id
reference_type
scores
url https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.static_memory_guard_size
1
reference_url https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.static_memory_maximum_size
reference_id
reference_type
scores
url https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.static_memory_maximum_size
2
reference_url https://github.com/bytecodealliance/wasmtime/commit/63fb30e4b4415455d47b3da5a19d79c12f4f2d1f
reference_id
reference_type
scores
url https://github.com/bytecodealliance/wasmtime/commit/63fb30e4b4415455d47b3da5a19d79c12f4f2d1f
3
reference_url https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ
reference_id
reference_type
scores
url https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ
4
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-26489
reference_id CVE-2023-26489
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-26489
5
reference_url https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-ff4p-7xrq-q5r8
reference_id GHSA-ff4p-7xrq-q5r8
reference_type
scores
url https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-ff4p-7xrq-q5r8
fixed_packages
0
url pkg:conan/wasmtime@4.0.1
purl pkg:conan/wasmtime@4.0.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:conan/wasmtime@4.0.1
1
url pkg:conan/wasmtime@5.0.1
purl pkg:conan/wasmtime@5.0.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:conan/wasmtime@5.0.1
2
url pkg:conan/wasmtime@6.0.1
purl pkg:conan/wasmtime@6.0.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:conan/wasmtime@6.0.1
aliases CVE-2023-26489, GHSA-ff4p-7xrq-q5r8
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-2bd1-bkqg-37g2
1
url VCID-ks4n-y5ps-hkd4
vulnerability_id VCID-ks4n-y5ps-hkd4
summary
Off-by-one Error
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.
references
0
reference_url https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd
reference_id
reference_type
scores
url https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.wasm_simd
1
reference_url https://github.com/bytecodealliance/wasmtime/commit/5dc2bbccbb363e474d2c9a1b8e38a89a43bbd5d1
reference_id
reference_type
scores
url https://github.com/bytecodealliance/wasmtime/commit/5dc2bbccbb363e474d2c9a1b8e38a89a43bbd5d1
2
reference_url https://github.com/webassembly/simd
reference_id
reference_type
scores
url https://github.com/webassembly/simd
3
reference_url https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ
reference_id
reference_type
scores
url https://groups.google.com/a/bytecodealliance.org/g/sec-announce/c/Mov-ItrNJsQ
4
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-27477
reference_id CVE-2023-27477
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-27477
5
reference_url https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vw
reference_id GHSA-xm67-587q-r2vw
reference_type
scores
url https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-xm67-587q-r2vw
fixed_packages
0
url pkg:conan/wasmtime@4.0.1
purl pkg:conan/wasmtime@4.0.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:conan/wasmtime@4.0.1
1
url pkg:conan/wasmtime@5.0.1
purl pkg:conan/wasmtime@5.0.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:conan/wasmtime@5.0.1
2
url pkg:conan/wasmtime@6.0.1
purl pkg:conan/wasmtime@6.0.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:conan/wasmtime@6.0.1
aliases CVE-2023-27477, GHSA-xm67-587q-r2vw
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-ks4n-y5ps-hkd4
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:conan/wasmtime@6.0.1