Approved changes feed: RSS · Atom

cpe:2.3:a:rust-websocket_project:rust-websocket:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorRust Websocket Project (900163a5-2c58-5665-95fa-51ac66f789f1)
ProductRust Websocket (f74882e1-0605-5e1d-b10e-7f0e028f490a)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*

Notes

Imported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/websockets-rs/rust-websocket purl2cpe 2026-06-01 10:11:16.989244

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2022-35922 vulnerable 2026-06-08 05:46:05.977329 Memory allocation based on untrusted length in rust-websocket
HIGH (7.5)
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.
Published: 2022-08-01T21:35:11.000Z
Updated: 2025-04-23T17:54:31.658Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.