CVE-2021-38187 Incorrect cast in anymap

Critical 9.8 Published Updated

A soundness violation in the anymap Rust crate allows memory corruption via unsafe pointer casting, potentially leading to crashes or arbitrary code execution.

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

What is CVE-2021-38187?

CVE-2021-38187 is a critical memory corruption vulnerability in n/a, published on 8 Aug 2021. 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 anymap crate through 0.12.1 for Rust. It violates soundness via conversion of a *u8 to a *u64.

Weakness: CWE-681

Which versions are affected by CVE-2021-38187?

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

PackageAffectedFixed in
anymap crates.ioAll versions to 0.12.1None
anymap crates.ioAll versions to 0.12.1None
anymap crates.ioFrom 0.0.0-0None

Products include Anymap Project Anymap.

How do I fix CVE-2021-38187?

No fix has been published for CVE-2021-38187 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2021-38187 being exploited?

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

Sources

Also known as DEBIAN-CVE-2021-38187, GHSA-hc92-9h3m-c39j, RUSTSEC-2021-0065.

Is CVE-2021-38187 in your software?

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

Check your SBOMs for free