CVE-2020-35881 Out of bounds write in traitobject

Critical 9.8 Published Updated

A memory corruption vulnerability in the Rust traitobject 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-2020-35881?

CVE-2020-35881 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 traitobject crate through 2020-06-01 for Rust. It has false expectations about fat pointers, possibly causing memory corruption in, for example, Rust 2.x.

Weakness: CWE-787

Which versions are affected by CVE-2020-35881?

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

PackageAffectedFixed in
traitobject crates.ioAll versions to 0.1.0None
traitobject crates.ioAll versions to 0.1.0None
traitobject crates.ioFrom 0.0.0-0None
Linux distribution packages (1)
aws-efs-utils openSUSE:TumbleweedAll versions2.2.1-1.1

Products include Traitobject Project Traitobject.

How do I fix CVE-2020-35881?

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-2020-35881 being exploited?

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

Sources

Also known as GHSA-j79j-cx3h-g27h, RUSTSEC-2020-0027, openSUSE-SU-2025:14951-1.

Is CVE-2020-35881 in your software?

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

Check your SBOMs for free