{"id":"CVE-2020-35889","aliases":["CVE-2020-35889","GHSA-m833-jv95-mfjh","RUSTSEC-2020-0037"],"related":[],"kind":"vulnerability","state":"published","title":"Memory safety violation in crayon","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Unsafe code in `ObjectPool` has time-of-check to time-of-use (TOCTOU) bug that\ncan eventually lead to a memory safety violation. `ObjectPool` and `HandlePool`\nimplicitly assumes that `HandleLike` trait methods are pure, i.e., they always\nreturn the same value. However, this assumption is unsound since `HandleLike`\nis a safe, public trait that allows a custom implementation.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate crayon hasta el 31-08-2020 para Rust.&#xa0;Un problema de tipo TOCTOU presenta una violación de seguridad de la memoria resultante por medio de la función HandleLike.","source":"nvd"}],"published":"2020-08-31T12:00:00.000Z","modified":"2026-06-17T03:14:32.547Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.7.1"}],"ecosystem":"crates.io","package":"crayon","purl":"pkg:cargo/crayon","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"crayon","purl":"pkg:cargo/crayon","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"0.7.0"}],"vendor":"crayon_project","product":"crayon","cpe":"cpe:2.3:a:crayon_project:crayon:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0037.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35889","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/shawnscode/crayon/issues/87","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/shawnscode/crayon","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/crayon","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-35889","url":"https://www.cve.org/CVERecord?id=CVE-2020-35889","licence":"CVE Terms of Use","modified":"2024-08-04T17:16:13.088Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m833-jv95-mfjh","url":"https://github.com/advisories/GHSA-m833-jv95-mfjh","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:37.746Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0037","url":"https://rustsec.org/advisories/RUSTSEC-2020-0037.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:37.746Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-35889","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35889","licence":"Public domain","modified":"2026-06-17T03:14:32.547Z"}],"updatedAt":"2026-11-25T22:57:56.696Z","epss":{"score":0.00881,"percentile":0.60196,"date":"2026-12-01T12:00:22.000Z"}}