CVE-2020-35889 json
Memory safety violation in crayon
published 6y ago modified 4mo ago also GHSA-m833-jv95-mfjh , RUSTSEC-2020-0037 , EUVD-2021-1793
- cvss
- 8.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Is CVE-2020-35889 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.88% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | crayon | <=0.7.1 >=0.0.0-0 |
no fix listed |
Classification
- Weakness
-
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
-
rustsec.org
/advisories/RUSTSEC-2020-0037.html
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-35889
advisory
-
github.com
/shawnscode/crayon/issues/87
web, report
-
github.com
/shawnscode/crayon
package
-
crates.io
/crates/crayon
package
Sources
- CVE List CVE-2020-35889
- GitHub Advisory GHSA-m833-jv95-mfjh
- NVD CVE-2020-35889
- OSV RUSTSEC-2020-0037
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.