# CVE-2020-35889: Memory safety violation in crayon

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/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): 0.88%, higher than 60% of CVEs (2026-12-01)
- Published: 2020-08-31T12:00:00.000Z
- Modified: 2026-06-17T03:14:32.547Z
- Also known as: GHSA-m833-jv95-mfjh, RUSTSEC-2020-0037
- Weaknesses: CWE-367
- Assigned by: mitre

## Description

An issue was discovered in the crayon crate through 2020-08-31 for Rust. A TOCTOU issue has a resultant memory safety violation via HandleLike.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- crayon (crates.io): up to 0.7.1; from 0.0.0-0
- crayon_project crayon: up to 0.7.0

## Every score

- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2020-0037.html> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-35889> (advisory)
- <https://github.com/shawnscode/crayon/issues/87> (report, web)
- <https://github.com/shawnscode/crayon> (package)
- <https://crates.io/crates/crayon> (package)

## Sources

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

---

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