Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-35922

7.5 · HIGH
Published Aug 1, 2022 rust-websocket_project CWE-400 EPSS 1.82% (77th pctl)

Overview

CVE-2022-35922 is a high-severity vulnerability affecting rust-websocket_project rust-websocket. It was published on August 1, 2022 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

Rust-WebSocket is a WebSocket (RFC6455) library written in Rust. In versions prior to 0.26.5 untrusted websocket connections can cause an out-of-memory (OOM) process abort in a client or a server. The root cause of the issue is during dataframe parsing. Affected versions would allocate a buffer based on the declared dataframe size, which may come from an untrusted source. When `Vec::with_capacity` fails to allocate, the default Rust allocator will abort the current process, killing all threads. This affects only sync (non-Tokio) implementation. Async version also does not limit memory, but does not use `with_capacity`, so DoS can happen only when bytes for oversized dataframe or message actually got delivered by the attacker. The crashes are fixed in version 0.26.5 by imposing default dataframe size limits. Affected users are advised to update to this version. Users unable to upgrade are advised to filter websocket traffic externally or to only accept trusted traffic.

Remediation

Check the references section for vendor advisories and patches from rust-websocket_project. Update rust-websocket to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
rust-websocket_project rust-websocket >= 0, < 0.26.5 Affected

Frequently Asked Questions

What is CVE-2022-35922?

CVE-2022-35922 is a high-severity vulnerability affecting rust-websocket_project rust-websocket. It was published on August 1, 2022 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2022-35922?

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-35922?

Check the references section for vendor advisories and patches from rust-websocket_project. Update rust-websocket to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-35922?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-35922 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.