{"id":"CVE-2020-36435","aliases":["EUVD-2021-1707","GHSA-fqq2-xp7m-xvm8","RUSTSEC-2020-0115"],"status":"published","title":"Data race in ruspiro-singleton","description":"An issue was discovered in the ruspiro-singleton crate before 0.4.1 for Rust. In Singleton, Send and Sync do not have bounds checks.","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-11","score":0.00766,"percentile":0.55901,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119","CWE-362"],"published":"2020-11-16T12:00:00Z","modified":"2026-06-17T03:15:29Z","fixes":[{"ecosystem":"crates.io","package":"ruspiro-singleton","fixed_in":["0.4.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"ruspiro-singleton","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"ruspiro-singleton","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"ruspiro-singleton","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.4.1"}]}]}],"products":[{"vendor":"ruspiro-singleton_project","product":"ruspiro-singleton"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0115.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/ruspiro-singleton/RUSTSEC-2020-0115.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36435","tags":["advisory"]},{"url":"https://github.com/RusPiRo/ruspiro-singleton/pull/11","tags":["web"]},{"url":"https://github.com/RusPiRo/ruspiro-singleton/issues/10","tags":["web","report"]},{"url":"https://github.com/RusPiRo/ruspiro-singleton/commit/b0d2bd20eb40b9cbc2958b981ba2dcd9e6f9396e","tags":["web"]},{"url":"https://github.com/advisories/GHSA-fqq2-xp7m-xvm8"},{"url":"https://github.com/RusPiRo/ruspiro-singleton","tags":["package"]},{"url":"https://crates.io/crates/ruspiro-singleton","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36435","description":"An issue was discovered in the ruspiro-singleton crate before 0.4.1 for Rust. In Singleton, Send and Sync do not have bounds checks.","status":"published","published":"2021-08-08T05:19:07Z","modified":"2024-08-04T17:30:07.413Z","updated_at":"2026-11-02T14:35:54.80237Z"}],"euvd":[{"id":"EUVD-2021-1707","description":"An issue was discovered in the ruspiro-singleton crate before 0.4.1 for Rust. In Singleton, Send and Sync do not have bounds checks.","status":"published","published":"2021-08-08T05:19:07Z","modified":"2024-08-04T17:30:07Z","updated_at":"2026-11-03T03:07:03.010139Z"}],"ghsa":[{"id":"GHSA-fqq2-xp7m-xvm8","title":"Data race in ruspiro-singleton","description":"`Singleton\u003cT\u003e` is meant to be a static object that can be initialized lazily. In\norder to satisfy the requirement that `static` items must implement `Sync`,\n`Singleton` implemented both `Sync` and `Send` unconditionally.\n\nThis allows for a bug where non-`Sync` types such as `Cell` can be used in\nsingletons and cause data races in concurrent programs.\n\nThe flaw was corrected in commit `b0d2bd20e` by adding trait bounds, requiring\nthe contaiend type to implement `Sync`.\n","status":"published","published":"2021-08-25T20:58:19Z","modified":"2023-01-27T05:00:55Z","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-119","CWE-362"],"updated_at":"2026-11-02T14:36:15.574072Z"}],"nvd":[{"id":"CVE-2020-36435","description":"An issue was discovered in the ruspiro-singleton crate before 0.4.1 for Rust. In Singleton, Send and Sync do not have bounds checks.","status":"published","published":"2021-08-08T06:15:06.927Z","modified":"2026-06-17T03:15:29.177Z","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-362"],"updated_at":"2026-11-02T14:06:44.292752Z"}],"osv":[{"id":"GHSA-fqq2-xp7m-xvm8","title":"Data race in ruspiro-singleton","description":"`Singleton\u003cT\u003e` is meant to be a static object that can be initialized lazily. In\norder to satisfy the requirement that `static` items must implement `Sync`,\n`Singleton` implemented both `Sync` and `Send` unconditionally.\n\nThis allows for a bug where non-`Sync` types such as `Cell` can be used in\nsingletons and cause data races in concurrent programs.\n\nThe flaw was corrected in commit `b0d2bd20e` by adding trait bounds, requiring\nthe contaiend type to implement `Sync`.\n","status":"published","published":"2021-08-25T20:58:19Z","modified":"2023-11-08T04:03:44.661151Z","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-119","CWE-362"],"updated_at":"2026-11-02T15:46:46.760785Z"},{"id":"RUSTSEC-2020-0115","title":"Singleton lacks bounds on Send and Sync.","description":"`Singleton\u003cT\u003e` is meant to be a static object that can be initialized lazily. In\norder to satisfy the requirement that `static` items must implement `Sync`,\n`Singleton` implemented both `Sync` and `Send` unconditionally.\n\nThis allows for a bug where non-`Sync` types such as `Cell` can be used in\nsingletons and cause data races in concurrent programs.\n\nThe flaw was corrected in commit `b0d2bd20e` by adding trait bounds, requiring\nthe contaiend type to implement `Sync`.","status":"published","published":"2020-11-16T12:00:00Z","modified":"2023-11-08T04:03:44.661151Z","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"}]}}
