Advisory

RUSTSEC-2023-0065

Also known as: CVE-2023-43669, GHSA-9mcr-873m-xcxp

Summary

Tungstenite allows remote attackers to cause a denial of service

Details

The Tungstenite crate through 0.20.0 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).

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2023-09-25 12:00 UTC
Modified
2023-11-08 04:13 UTC

Affected packages and fixes

tungstenite

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.20.1 (semver)

Fixed versions

0.20.1

Fix

  • Fixed version 0.20.1
    cargo update -p tungstenite --precise 0.20.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences