Rust advisories / tls-listener
Vulnerability HighRUSTSEC-2024-0341 · tls-listener
RUSTSEC-2024-0341: Slow loris vulnerability with default configuration
Short answerA security vulnerability in the tls-listener crate: Slow loris vulnerability with default configuration. High severity (CVSS 7.5). Fixed in 0.10.0: update to a fixed version.
| Crate | tls-listener |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.10.0. |
| Fixed in | 0.10.0 |
| Severity | High, CVSS 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2024-03-15 |
| Last changed | 2026-10-12 |
| Also known as | CVE-2024-28854, GHSA-2qph-qpvm-2qf7 |
| Affected functions | tls_listener::TlsListener::new |
What to do
- See which version you have:
cargo tree -i tls-listener(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p tls-listener. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampletls-listener = "0.10.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
tls-listener is a rust lang wrapper around a connection listener to support TLS. With the default configuration of tls-listener, a malicious user can open 6.4 TcpStreams a second, sending 0 bytes, and can trigger a DoS. The default configuration options make any public service using TlsListener::new() vulnerable to a slow-loris DoS attack. This impacts any publicly accessible service using the default configuration of tls-listener in versions prior to 0.10.0. Users are advised to upgrade. Users unable to upgrade may mitigate this by passing a large value, such as usize::MAX as the parameter to Builder::max_handshakes.
References
- Package: crates.io/crates/tls-listener
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0341.html
- Web: github.com/tmccombs/tls-listener/commit/d5a7655d6ea9e53ab57c3013092c5576da964bc4
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?