CVE-2020-35896
HIGH 7.5CVSS 3.1Insufficient size checks in ws
An issue was discovered in the ws crate through 2020-09-25 for Rust. The outgoing buffer is not properly limited, leading to a remote memory-consumption attack.
- Published
- 31 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400CWE-770
- Also known as
- GHSA-rh7x-ppxx-p34cRUSTSEC-2020-0043
- Sources
- NVDJSONOSV GHSA-rh7x-ppxx-p34cJSONOSV RUSTSEC-2020-0043JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ws-rs_project | ws-rscpe:2.3:a:ws-rs_project:ws-rs:*:*:*:*:*:rust:*:* |
<= 0.9.1 | |
| OSV | crates.io | ws | <= 0.9.1 | |
| OSV | crates.io | ws | >= 0.0.0-0 |
References
- https://rustsec.org/advisories/RUSTSEC-2020-0043.html · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-35896 · ADVISORY
- https://github.com/housleyjk/ws-rs/issues/291 · WEB, REPORT
- https://github.com/housleyjk/ws-rs · PACKAGE
- https://crates.io/crates/ws · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 31 Dec 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)