CVE-2020-35895 Out-of-bounds write in stack

Critical 9.8 Published Updated

An out-of-bounds write in the Rust stack crate allows attackers to cause memory corruption, potentially leading to code execution or crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-35895?

CVE-2020-35895 is a critical memory corruption 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 stack crate before 0.3.1 for Rust. ArrayVec has an out-of-bounds write via element insertion.

Weakness: CWE-787

Which versions are affected by CVE-2020-35895?

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

PackageAffectedFixed in
stack crates.ioAll versions0.3.1
stack crates.ioAll versions0.3.1
stack crates.ioFrom 0.0.0-00.3.1

Products include Stack Project Stack.

How do I fix CVE-2020-35895?

Upgrade stack to 0.3.1 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-35895 being exploited?

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

Sources

Also known as GHSA-h45v-vgvp-3h5v, RUSTSEC-2020-0042.

Is CVE-2020-35895 in your software?

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

Check your SBOMs for free