9.8critical
Out of bounds write in traitobject
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.73% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-j79j-cx3h-g27hRUSTSEC-2020-0027
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| traitobject (crates.io) | up to 0.1.0, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| traitobject_project traitobject | up to 0.1.0 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| RustSec Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
RustSec Advisory Database
This crate gets the data pointer from fat pointers assuming that the first element in a fat pointer is the data pointer. This is currently true, but it may change in a future Rust version, leading to memory corruption.
This has been fixed in the master branch of the crate, but is has not been released into crates.io.
NVD (es)
Se detectó un problema en la crate traitobject hasta el 01-06-2020 para Rust. Presenta falsas expectativas sobre los punteros fat, posiblemente causando una corrupción de la memoria, por ejemplo, en Rust versión 2.x.
References
| https://rustsec.org/advisories/RUSTSEC-2020-0027.html | advisory, exploit, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-35881 | advisory | |
| https://github.com/reem/rust-traitobject/issues/7 | report, web | |
| https://github.com/reem/rust-traitobject | package | |
| https://crates.io/crates/traitobject | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-35881 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j79j-cx3h-g27h changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2020-0027 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2020-35881 changed 2026-06-17 | Public domain |