SecurityContext

CVE-2022-35922: Rust-WebSocket - Denial of Service

  • Cve: CVE-2022-35922
  • Name: Rust-WebSocket - Denial of Service
  • 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.
  • Impact: Attackers can cause denial of service by crashing the process through memory exhaustion during websocket data parsing.
  • Remediation: Update to version 0.26.5 or later. Alternatively, filter websocket traffic externally or accept only trusted data.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.01918
  • Epss percentile: 0.80426
  • Assignee: [email protected]
  • Published at: 2022-08-01T22:15:10Z
  • Age in days: 1576
  • Modified at: 2026-06-17T04:52:31Z
  • Patch available: yes
  • References total: 4
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-35922
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements

Cwe

IdName
CWE-400Uncontrolled Resource Consumption
CWE-770Allocation of Resources Without Limits or Throttling

Hackerone

  • Reports: 1
  • Rank: 5211

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/websockets-rs/rust-websocket/commit/cbf6e9983e839d2ecad86de8cd1b3f20ed43390bPatch, Third Party Advisory
https://github.com/websockets-rs/rust-websocket/security/advisories/GHSA-qrjv-rf5q-qpxcThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4V2EOOU5OLEHVMKAH6BALQXKDKIZRXCI/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HYPNCM4H4OFBIZI6XMJ2DUTS54FT2TWP/

Products

ProductAffectedPlatform boundSourcesUrl
rust-websocket_project:rust-websocket< 0.26.5nonvd/v1/products/rust-websocket_project/rust-websocket
fedoraproject:fedora= 36, = 35nonvd/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
websockets-rs/rust-websocketcommit, fix, package, security_advisoryyes/v1/repositories/websockets-rs/rust-websocket

Index

  • Repositories: 2
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 49161
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since