CVE-2020-35903 Out of bounds read in dync
The dync crate allows misaligned memory access in VecCopy, potentially leading to crashes or arbitrary code execution in Rust applications.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-35903?
CVE-2020-35903 is a medium-severity memory corruption vulnerability in n/a, published on 31 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
An issue was discovered in the dync crate before 0.5.0 for Rust. VecCopy allows misaligned element access because u8 is not always the type in question.
Which versions are affected by CVE-2020-35903?
3 open source packages ship an affected version, including dync. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
dync crates.io | All versions | 0.5.0 |
dync crates.io | All versions | 0.5.0 |
dync crates.io | From 0.0.0-0 | 0.5.0 |
Products include Dync Project Dync.
How do I fix CVE-2020-35903?
Upgrade dync to 0.5.0 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2020-35903 being exploited?
There is no known exploitation of CVE-2020-35903 in the wild and no public exploit code.
Sources
Also known as GHSA-qxjq-v4wf-ppvh, RUSTSEC-2020-0050.