Receiving QUIC frames containing a frame with unknown frame type could lead to a panic. Unfortunately this is issue was not found by our fuzzing infrastructure.
Thanks to the QUIC Tester research group for reporting this issue.
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.
quinn(12 total, 6 outdated, 3 possibly insecure)
| Crate | Required | Latest | Status |
|---|---|---|---|
| async-io | ^1.6 | 2.6.0 | out of date |
| async-std | ^1.11 | 1.13.2 | up to date |
| bytes ⚠️ | ^1 | 1.11.1 | maybe insecure |
| futures-io | ^0.3.19 | 0.3.31 | up to date |
| pin-project-lite | ^0.2 | 0.2.16 | up to date |
| quinn-proto ⚠️ | ^0.10.2 | 0.11.13 | out of date |
| rustc-hash | ^1.1 | 2.1.1 | out of date |
| rustls ⚠️ | ^0.21.0 | 0.23.36 | out of date |
| thiserror | ^1.0.21 | 2.0.18 | out of date |
| tokio | ^1.28.1 | 1.49.0 | up to date |
| tracing | ^0.1.10 | 0.1.44 | up to date |
| quinn-udp | ^0.4 | 0.5.14 | out of date |
(12 total, 3 outdated, 1 possibly insecure)
| Crate | Required | Latest | Status |
|---|---|---|---|
| anyhow | ^1.0.22 | 1.0.101 | up to date |
| bencher | ^0.1.5 | 0.1.5 | up to date |
| clap | ^4 | 4.5.58 | up to date |
| crc | ^3 | 3.4.0 | up to date |
| directories-next | ^2 | 2.0.0 | up to date |
| rand | ^0.8 | 0.10.0 | out of date |
| rcgen | ^0.10.0 | 0.14.7 | out of date |
| rustls-pemfile | ^1.0.0 | 2.2.0 | out of date |
| tokio | ^1.28.1 | 1.49.0 | up to date |
| tracing-futures | ^0.2.0 | 0.2.5 | up to date |
| tracing-subscriber ⚠️ | ^0.3.0 | 0.3.22 | maybe insecure |
| url | ^2 | 2.5.8 | up to date |
quinn-proto: Denial of service in Quinn serversReceiving QUIC frames containing a frame with unknown frame type could lead to a panic. Unfortunately this is issue was not found by our fuzzing infrastructure.
Thanks to the QUIC Tester research group for reporting this issue.
rustls: `rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network inputIf a close_notify alert is received during a handshake, complete_io
does not terminate.
Callers which do not call complete_io are not affected.
rustls-tokio and rustls-ffi do not call complete_io
and are not affected.
rustls::Stream and rustls::StreamOwned types use
complete_io and are affected.
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.
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.