CVE-2018-1000657 Memory corruption in n/a

High 7.8 Published Updated

A buffer overflow in the Rust standard library's VecDeque reserve function allows arbitrary code execution, requiring an upgrade to a patched version.

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-2018-1000657?

CVE-2018-1000657 is a high-severity memory corruption vulnerability in n/a, published on 20 Aug 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Rust Programming Language Rust standard library version Commit bfa0e1f58acf1c28d500c34ed258f09ae021893e and later; stable release 1.3.0 and later contains a Buffer Overflow vulnerability in std::collections::vec_deque::VecDeque::reserve() function that can result in Arbitrary code execution, but no proof-of-concept exploit is currently published.. This vulnerability appears to have been fixed in after commit fdfafb510b1a38f727e920dccbeeb638d39a8e60; stable release 1.22.0 and later.

Weakness: CWE-119

Which versions are affected by CVE-2018-1000657?

It affects 1 product.

Products include Rust-Lang Rust.

How do I fix CVE-2018-1000657?

Upgrade to a fixed version.

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

Is CVE-2018-1000657 being exploited?

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

Sources

Also known as DEBIAN-CVE-2018-1000657, GHSA-7877-m5c6-fgmx.

Is CVE-2018-1000657 in your software?

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

Check your SBOMs for free