Skip to content
Heist/ feed
Back to feed
HighFix available

Slow loris vulnerability with default configuration

Type: advisorySources: OSV

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

Products
tls-listener
Affected versions
Not specified
Fixed versions
0.10.0
CVEs
CVE-2024-28854
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 08:40 UTC · Revision 1

Source evidence

Slow loris vulnerability with default configuration

core-osv · Original source

Published 15 Mar 2024, 12:00 UTC

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

osv:RUSTSEC-2024-0341

tls-listener

Fixed versions: 0.10.0

Complete source record
{
  "id": "97a7d46f0ca2d378c3bda77a209bbc421858624ffa0e6ff031b3a3b28bbc84df",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2024-0341",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Slow loris vulnerability with default configuration",
    "summary": "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`.",
    "evidence": "osv:RUSTSEC-2024-0341",
    "products": [
      {
        "name": {
          "value": "tls-listener",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.10.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "RUSTSEC-2024-0341",
      "aliases": [
        "CVE-2024-28854",
        "GHSA-2qph-qpvm-2qf7",
        "RUSTSEC-2024-0341"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "0.10.0"
                }
              ]
            }
          ],
          "package": {
            "name": "tls-listener",
            "purl": "pkg:cargo/tls-listener",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0341.json",
            "categories": [
              "denial-of-service"
            ],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": [
                "tls_listener::TlsListener::new"
              ]
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-12T18:00:02.661145894Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/tls-listener",
        "https://rustsec.org/advisories/RUSTSEC-2024-0341.html",
        "https://github.com/tmccombs/tls-listener/commit/d5a7655d6ea9e53ab57c3013092c5576da964bc4"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-28854",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 306317,
  "published_at": "2024-03-15T12:00:00+00:00"
}