1. Accueil
  2. Vulnérabilités
  3. CVE-2022-35922

CVE-2022-35922

Rust-WebSocket is a WebSocket (RFC6455) library written in Rust. In versions prior to 0.26.5 untrusted…

Publiée le 1 août 2022 · modifiée le 17 juin 2026 · Sources : NVD, CERT-FR, EPSS (FIRST)

Moyen 53/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

crates.io (1 ligne(s))
crates.io
ProduitVersionsCorrigé dansSource
websocket de 0.0.0-0 (inclus) à 0.26.5 (exclu) 0.26.5 OSV
Fedoraproject (2 ligne(s))
Fedoraproject
ProduitVersionsCorrigé dansSource
Fedora 35 — NVD
Fedora 36 — NVD
Rust-websocket project (1 ligne(s))
Rust-websocket project
ProduitVersionsCorrigé dansSource
Rust-websocket avant 0.26.5 (exclu) — NVD

Correctif

Mise à jour — crates.io/websocket 0.26.5source officielle

Source : OSV

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
NVD
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-770 · Autre (CWE-770)

Comment sont obtenues et calculées ces données