tokio-websockets is vulnerable to Out-of-bounds Read
71
High Risk
Affected versions of this package are vulnerable to Out-of-bounds Access due to improper bounds checking when handling partial writes in vectored I/O. The vulnerability occurs when processing the first frame in the queue: if bytes_written exceeds the header length but is larger than the payload length, the unsafe get_unchecked call attempts to create a slice starting beyond the payload buffer boundaries. An attacker could exploit this by sending a large number of messages rapidly, triggering partial writes and causing the bytes_written value to corrupt memory or read out-of-bounds data, potentially leading to a denial of service or information disclosure.
You are affected if you are using a version that falls within the vulnerable range.
tokio-websockets is vulnerable to Out-of-bounds Read in versions 0.12.0 - 0.12.0.
Upgrade the tokio-websockets library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant