CVE-2018-21000 Heap overflow or corruption in safe-transmute

Critical 9.8 Published Updated

Heap memory corruption in the safe-transmute crate allows attackers to potentially execute arbitrary code or cause denial of service.

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

What is CVE-2018-21000?

CVE-2018-21000 is a critical memory corruption vulnerability in n/a, published on 26 Aug 2019. 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 safe-transmute crate before 0.10.1 for Rust. A constructor's arguments are in the wrong order, causing heap memory corruption.

Weakness: CWE-119

Which versions are affected by CVE-2018-21000?

3 open source packages ship an affected version, including safe-transmute. It affects 1 product.

PackageAffectedFixed in
safe-transmute crates.ioFrom 0.4.00.10.1
safe-transmute crates.ioFrom 0.4.00.10.1
safe-transmute crates.ioFrom 0.4.00.10.1

Products include Safe-Transmute Project Safe-Transmute.

How do I fix CVE-2018-21000?

Upgrade safe-transmute to 0.10.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-2018-21000 being exploited?

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

Sources

Also known as GHSA-2v78-j59h-fmpf, RUSTSEC-2018-0013, UBUNTU-CVE-2018-21000.

Is CVE-2018-21000 in your software?

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

Check your SBOMs for free