Intel

AIKIDO-2024-10555

tungstenite is vulnerable to Undefined Behavior

Undefined Behavior Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

18

Low Risk

This Affects:

rusttungstenite
0.26.0 - 0.26.0
Fixed in 0.26.1

TL;DR

Affected versions of this package are vulnerable to undefined behavior when handling unreliable Read stream implementations. The issue arises from improper memory handling during stream processing. The updated version resolves this by retaining the set-len refactor while employing a safe resize function to prevent such issues.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

tungstenite is vulnerable to Undefined Behavior in versions 0.26.0 - 0.26.0.

How to fix this

Upgrade the tungstenite library to the patch version.