CVE-2020-35921 miow invalidly assumes the memory layout of std::net::SocketAddr

Medium 5.5 Published Updated

The miow Rust crate mishandles SocketAddr memory representation, potentially allowing attackers to cause memory corruption or crashes.

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-35921?

CVE-2020-35921 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 miow crate before 0.3.6 for Rust. It has false expectations about the std::net::SocketAddr memory representation.

Which versions are affected by CVE-2020-35921?

3 open source packages ship an affected version, including miow. It affects 1 product.

PackageAffectedFixed in
miow crates.ioFrom 0.0.0-00.2.2, 0.3.6
miow crates.ioFrom 0.3.00.3.6
miow crates.ioFrom 0.3.00.3.6

Products include Miow Project Miow.

How do I fix CVE-2020-35921?

Upgrade miow to a fixed version for your release line: 0.2.2 or 0.3.6.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2020-35921 being exploited?

There is no known exploitation of CVE-2020-35921 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2020-35921, GHSA-jrcf-4jp8-m28v, RUSTSEC-2020-0080, UBUNTU-CVE-2020-35921.

Is CVE-2020-35921 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free