CVE-2022-35922 — Vulnerability in websocket — CVE Details
Rust-WebSocket memory allocation based on untrusted length
Summary
Advisory Timeline
- First published August 6, 2022 (1528 days ago).
- Last revised November 8, 2023 — 459 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p websocket --precise 0.26.5
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| websocket | crates.io | All versions | 0.26.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/websockets-rs/rust-websocket/security/advisories/GHSA-qrjv-rf5q-qpxcWEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-35922ADVISORY
- https://github.com/websockets-rs/rust-websocket/commit/cbf6e9983e839d2ecad86de8cd1b3f20ed43390bWEB
- https://github.com/websockets-rs/rust-websocketPACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4V2EOOU5OLEHVMKAH6BALQXKDKIZRXCIWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HYPNCM4H4OFBIZI6XMJ2DUTS54FT2TWPWEB
- https://rustsec.org/advisories/RUSTSEC-2022-0035.htmlWEB
Frequently Asked Questions
- What is CVE-2022-35922?
- Rust-WebSocket memory allocation based on untrusted length This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2022-35922?
- CVE-2022-35922 affects websocket. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-35922 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-93657HIGH
hickory-resolver: Resolver::lookup() and Resolver::lookup_ip() APIs obscure DNSSEC validation failures
- CVE-2026-18140HIGH
aws-smithy-json: Uncontrolled recursion in the aws-smithy-json unknown-key skip path allows unauthenticated remote denial of service in smithy-rs generated servers
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies