VYPR
Critical severityNVD Advisory· Published Dec 31, 2020· Updated Aug 4, 2024

CVE-2020-35881

CVE-2020-35881

Description

The Rust crate traitobject before 2020-06-01 made unsafe assumptions about fat pointer layout, causing memory corruption in versions like Rust 2.x.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

The Rust crate traitobject before 2020-06-01 made unsafe assumptions about fat pointer layout, causing memory corruption in versions like Rust 2.x.

The traitobject crate for Rust contains an unsoundness vulnerability due to its incorrect assumptions about the memory layout of fat pointers (trait objects). The data and data_mut functions directly transmute a pointer to a trait object to extract the data pointer, assuming the first field of the fat pointer is always the data pointer [1][2][4]. This assumption is not guaranteed by the Rust compiler and can change across Rust versions, potentially leading to memory corruption.

The vulnerability can be exploited without authentication or user interaction over a network. An attacker could craft inputs that trigger the unsafe transmute, causing the crate to misinterpret memory and read or write arbitrary data [2]. The issue affects all versions of traitobject up to (and including) the version published on 2020-06-01.

Successful exploitation can result in complete compromise of confidentiality, integrity, and availability, with a CVSS score of 9.8 (Critical) [2]. The RustSec advisory identifies this as an unsoundness vulnerability in the memory-corruption category [2].

As of the advisory publication date, no patched version has been released. A fix was committed to the repository (commit 99b1993), but it was not published to crates.io [2][3][4]. Users are advised to avoid using the crate or to apply the fix manually. The crate appears to be unmaintained.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
traitobjectcrates.io
<= 0.1.0

Affected products

9

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.