Description
The Tungstenite crate before 0.20.1 for Rust allows remote attackers to cause a denial of service (minutes of CPU consumption) via an excessive length of an HTTP header in a client handshake. The length affects both how many times a parse is attempted (e.g., thousands of times) and the average amount of data for each parse attempt (e.g., millions of bytes).
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-tungstenite | 0.20.1-1 | — |
| Debian 13 | rust-tungstenite | 0.20.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-tungstenite | No fix yet | — |
| Ubuntu 26.04 LTS | rust-tungstenite | No fix yet | — |
| Ubuntu 25.10 | rust-tungstenite | No fix yet | — |
| Ubuntu 24.04 LTS | rust-tungstenite | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | zed | 0.147.2-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | tungstenite | < 0.20.1 | 0.20.1 | GHSA-9mcr-873m-xcxp |
| crates.io | tungstenite | >= 0.0.0-0, < 0.20.1 | 0.20.1 | RUSTSEC-2023-0065 |
References
- https://github.com/snapview/tungstenite-rs/issues/376
- https://cwe.mitre.org/data/definitions/407.html
- https://crates.io/crates/tungstenite/versions
- https://github.com/snapview/tungstenite-rs/commit/8b3ecd3cc0008145ab4bc8d0657c39d09db8c7e2
- https://github.com/advisories/GHSA-9mcr-873m-xcxp
- https://github.com/github/advisory-database/pull/2752
- https://bugzilla.suse.com/show_bug.cgi?id=1215563
- https://bugzilla.redhat.com/show_bug.cgi?id=2240110
- https://security-tracker.debian.org/tracker/CVE-2023-43669
- FEDORA-2023-91a66898d2 vendor-advisory
- FEDORA-2023-e72bf7b92e vendor-advisory
- FEDORA-2023-9c4142423a vendor-advisory