This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-c2f5-jxjv-2hh8. For more information see the GitHub-hosted security advisory.
This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.
wasmtime-wasi(28 total, 16 outdated, 2 possibly insecure)
| Crate | Required | Latest | Status |
|---|---|---|---|
| anyhow | ^1.0.22 | 1.0.101 | up to date |
| async-trait | ^0.1.71 | 0.1.89 | up to date |
| bitflags | ^2.0 | 2.10.0 | up to date |
| bytes ⚠️ | ^1.4 | 1.11.1 | maybe insecure |
| cap-fs-ext | ^2.0.0 | 4.0.0 | out of date |
| cap-net-ext | ^2.0.0 | 4.0.0 | out of date |
| cap-rand | ^2.0.0 | 4.0.0 | out of date |
| cap-std | ^2.0.0 | 4.0.0 | out of date |
| cap-time-ext | ^2.0.0 | 4.0.0 | out of date |
| fs-set-times | ^0.20.0 | 0.20.3 | up to date |
| futures | ^0.3.27 | 0.3.31 | up to date |
| io-extras | ^0.18.0 | 0.19.0 | out of date |
| io-lifetimes | ^2.0.2 | 3.0.1 | out of date |
| libc | ^0.2.60 | 0.2.180 | up to date |
| log | ^0.4.8 | 0.4.29 | up to date |
| once_cell | ^1.12.0 | 1.21.3 | up to date |
| rustix | ^0.38.21 | 1.1.3 | out of date |
| system-interface | ^0.26.0 | 0.27.3 | out of date |
| thiserror | ^1.0.43 | 2.0.18 | out of date |
| tokio | ^1.26.0 | 1.49.0 | up to date |
| tracing | ^0.1.26 | 0.1.44 | up to date |
| url | ^2.3.1 | 2.5.8 | up to date |
| wasi-cap-std-sync | =17.0.1 | 17.0.3 | out of date |
| wasi-common | =17.0.1 | 41.0.3 | out of date |
| wasi-tokio | =17.0.1 | 17.0.3 | out of date |
| wasmtime ⚠️ | ^17.0.1 | 41.0.3 | out of date |
| wiggle | =17.0.1 | 41.0.3 | out of date |
| windows-sys | ^0.52.0 | 0.61.2 | out of date |
(6 total, 1 outdated, 2 possibly insecure)
| Crate | Required | Latest | Status |
|---|---|---|---|
| libc | ^0.2.60 | 0.2.180 | up to date |
| tempfile | ^3.1.0 | 3.24.0 | up to date |
| test-log | ^0.2 | 0.2.19 | up to date |
| tokio | ^1.26.0 | 1.49.0 | up to date |
| tracing-subscriber ⚠️ | ^0.3.1 | 0.3.22 | maybe insecure |
| wasmtime ⚠️ | ^17.0.1 | 41.0.3 | out of date |
wasmtime: Wasmtime doesn't fully sandbox all the Windows device filenamesThis is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-c2f5-jxjv-2hh8. For more information see the GitHub-hosted security advisory.
wasmtime: Host panic with `fd_renumber` WASIp1 functionThis is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-fm79-3f68-h2fc. For more information see the GitHub-hosted security advisory.
tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequencesPrevious versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:
In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.
This was patched in PR #3368 to escape ANSI control characters from user input.
wasmtime: Unsound API access to a WebAssembly shared linear memoryThis is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-hc7m-r6v8-hg9q For more information see the GitHub-hosted security advisory.
bytes: Integer overflow in `BytesMut::reserve`In the unique reclaim path of BytesMut::reserve, the condition
if v_capacity >= new_cap + offset
uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.
This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.
use bytes::*;
fn main() {
let mut a = BytesMut::from(&b"hello world"[..]);
let mut b = a.split_off(5);
// Ensure b becomes the unique owner of the backing storage
drop(a);
// Trigger overflow in new_cap + offset inside reserve
b.reserve(usize::MAX - 6);
// This call relies on the corrupted cap and may cause UB & HBO
b.put_u8(b'h');
}
Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.