CVE-2024-28854
Slow loris vulnerability with default configuration in tls-listener
Reported by github_m · Published March 15, 2024
tls-listener is fixed in 0.10.0 (crates.io)
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`.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tls-listener | crates.io | 0.10.0 |
| sdp-k8s-injector | Chainguard | 1.4.0-r0 |
| tls-listener | tmccombs | 0.10.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| tmccombs | tls-listener | < 0.10.0 |
| chainguard | sdp-k8s-injector | 0 |
| crates.io | tls-listener | 0 |
| tmccombs | tls-listener | 0 |
| tmccombs | tls-listener | 0 |
| wolfi | sdp-k8s-injector | 0 |
Timeline
- Mar 15, 2024 CVE Published
- Mar 15, 2024 PoC Published (3 in total, the first dated here)
- Mar 16, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
- Jan 14, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-28854
vulnetix vdb fixes CVE-2024-28854
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-28854/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/tmccombs/tls-listener/security/advisories/GHSA-2qph-qpvm-2qf7 x_refsource_CONFIRM
- https://github.com/tmccombs/tls-listener/commit/d5a7655d6ea9e53ab57c3013092c5576da964bc4 x_refsource_MISC
- https://en.wikipedia.org/wiki/Slowloris_(computer_security) x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-28854 advisory
- https://github.com/advisories/GHSA-2qph-qpvm-2qf7 advisory
- https://github.com/tmccombs/tls-listener url
- https://github.com/tmccombs/tls-listener/releases/tag/v0.10.0 url
- https://rustsec.org/advisories/RUSTSEC-2024-0341.html url