# CVE-2020-35881: Out of bounds write in traitobject

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.73%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-06-01T12:00:00.000Z
- Modified: 2026-09-10T03:49:27.084Z
- Also known as: GHSA-j79j-cx3h-g27h, RUSTSEC-2020-0027
- Weaknesses: CWE-787
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- traitobject (crates.io): up to 0.1.0; from 0.0.0-0
- traitobject_project traitobject: up to 0.1.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2020-0027.html> (exploit, advisory, 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

- CVE List: [CVE-2020-35881](https://www.cve.org/CVERecord?id=CVE-2020-35881), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-j79j-cx3h-g27h](https://github.com/advisories/GHSA-j79j-cx3h-g27h), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2020-0027](https://rustsec.org/advisories/RUSTSEC-2020-0027.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2020-35881](https://nvd.nist.gov/vuln/detail/CVE-2020-35881), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-35881 · Whole record: https://cve.day/CVE-2020-35881.json · Rebuilt by cve.day 2026-11-25T22:57:56.689Z
