{"id":"CVE-2020-35889","aliases":["EUVD-2021-1793","GHSA-m833-jv95-mfjh","RUSTSEC-2020-0037"],"status":"published","title":"Memory safety violation in crayon","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.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00881,"percentile":0.59387,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-367"],"published":"2020-08-31T12:00:00Z","modified":"2026-10-24T10:30:23Z","affected":[{"source":"ghsa","ecosystem":"crates.io","package":"crayon","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.7.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"crayon","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.7.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"crayon","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}]}],"products":[{"vendor":"crayon_project","product":"crayon"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0037.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35889","tags":["advisory"]},{"url":"https://github.com/shawnscode/crayon/issues/87","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-m833-jv95-mfjh"},{"url":"https://github.com/shawnscode/crayon","tags":["package"]},{"url":"https://crates.io/crates/crayon","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-35889","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.","status":"published","published":"2020-12-31T08:24:52Z","modified":"2024-08-04T17:16:13.088Z","updated_at":"2026-11-02T14:35:58.331892Z"}],"euvd":[{"id":"EUVD-2021-1793","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.","status":"published","published":"2020-12-31T08:24:52Z","modified":"2024-08-04T17:16:13Z","updated_at":"2026-11-03T03:07:04.595509Z"}],"ghsa":[{"id":"GHSA-m833-jv95-mfjh","title":"Memory safety violation in crayon","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.","status":"published","published":"2021-08-25T20:48:50Z","modified":"2023-01-09T05:05:14Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:36:11.367194Z"}],"nvd":[{"id":"CVE-2020-35889","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.","status":"published","published":"2020-12-31T10:15:16.643Z","modified":"2026-06-17T03:14:32.547Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:06:28.340168Z"}],"osv":[{"id":"CVE-2020-35889","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.","status":"published","published":"2020-12-31T10:15:16.643Z","modified":"2026-10-24T10:30:23.331817548Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:16.612899Z"},{"id":"GHSA-m833-jv95-mfjh","title":"Memory safety violation in crayon","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.","status":"published","published":"2021-08-25T20:48:50Z","modified":"2023-11-08T04:03:37.74676Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:46:51.463834Z"},{"id":"RUSTSEC-2020-0037","title":"Misbehaving `HandleLike` implementation can lead to memory safety violation","description":"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.","status":"published","published":"2020-08-31T12:00:00Z","modified":"2023-11-08T04:03:37.74676Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
