RustSec Advisory Database
RUSTSEC-2024-0336
`rustls::ConnectionCommon::complete_io` could fall into an infinite loop based on network input
Details
If 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | rustls | From 0.0.0-0 before 0.21.11 (fixed in 0.21.11) From 0.22.0 before 0.22.4 (fixed in 0.22.4) From 0.23.0 before 0.23.5 (fixed in 0.23.5) |