RUSTSEC-2024-0341

Source
https://rustsec.org/advisories/RUSTSEC-2024-0341
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0341.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2024-0341
Aliases
Published
2024-03-15T12:00:00Z
Modified
2024-05-21T02:12:32Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Slow loris vulnerability with default configuration
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / tls-listener

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.10.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "tls_listener::TlsListener::new"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "informational": null,
    "categories": [
        "denial-of-service"
    ]
}