CVE-2020-35896 Insufficient size checks in ws
Attackers can cause remote memory exhaustion in applications using the ws crate due to unbounded outgoing buffers, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-35896?
CVE-2020-35896 is a high-severity denial of service vulnerability in n/a, published on 31 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-770
Which versions are affected by CVE-2020-35896?
3 open source packages ship an affected version, including ws. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ws crates.io | All versions to 0.9.1 | None |
ws crates.io | All versions to 0.9.1 | None |
ws crates.io | From 0.0.0-0 | None |
Products include Ws-Rs Project Ws-Rs.
How do I fix CVE-2020-35896?
No fix has been published for CVE-2020-35896 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2020-35896 being exploited?
There is no known exploitation of CVE-2020-35896 in the wild and no public exploit code.
Sources
Also known as GHSA-rh7x-ppxx-p34c, RUSTSEC-2020-0043.