Todas las CVE / Rust-websocket Project
CVE-2022-35922Rust-websocket Project Rust-websocket
Alta 7.5 Sin autenticación
Seguir: esta CVE · Rust-websocket Project · Rust-websocket Project Rust-websocket Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.9% probabilidad de explotación en 30 días · percentil 81
- Requiere autenticación
- No
- Publicada
- 1 ago 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: ninguna · Automatizable: sí · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Rust-websocket.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| crates.io | websocket |
< 0.26.5 |
0.26.5 |
cargo update -p websocket --precise 0.26.5 |
| crates.io | websocket |
≥ 0.0.0-0 < 0.26.5 |
0.26.5 |
cargo update -p websocket --precise 0.26.5 |
Según OSV / GitHub Advisories (GHSA-qrjv-rf5q-qpxc, RUSTSEC-2022-0035). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| rust-websocket_project | rust-websocket | < 0.26.5 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org