{"id":"CVE-2020-36471","aliases":["DEBIAN-CVE-2020-36471","EUVD-2021-1906","GHSA-w3g5-2848-2v8r","RUSTSEC-2020-0151","UBUNTU-CVE-2020-36471"],"status":"published","title":"Data races in generator","description":"An issue was discovered in the generator crate before 0.7.0 for Rust. It does not ensure that a function (for yielding values) has Send bounds.","severity":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01094,"percentile":0.65781,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-362"],"published":"2020-11-16T12:00:00Z","modified":"2026-10-26T12:02:49Z","fixes":[{"ecosystem":"crates.io","package":"generator","fixed_in":["0.7.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"rust-generator","fixed_in":["0.7.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"rust-generator","fixed_in":["0.7.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rust-generator","fixed_in":["0.7.1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rust-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"rust-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rust-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.1-1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"generator","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"generator","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.7.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"rust-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.20-2","0.6.20-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"rust-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.1-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"rust-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.1-1.1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"rust-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.1-1.1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"rust-generator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.1-1.1"]}],"products":[{"vendor":"generator_project","product":"generator"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0151.html","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","advisory","report"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/generator/RUSTSEC-2020-0151.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36471","tags":["advisory"]},{"url":"https://github.com/Xudong-Huang/generator-rs/issues/27","tags":["web","report"]},{"url":"https://github.com/Xudong-Huang/generator-rs/commit/f7d120a3b724d06a7b623d0a4306acf8f78cb4f0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-w3g5-2848-2v8r"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-36471","tags":["advisory"]},{"url":"https://github.com/Xudong-Huang/generator-rs","tags":["package"]},{"url":"https://crates.io/crates/generator","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2020-36471","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-36471","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-36471","description":"An issue was discovered in the generator crate before 0.7.0 for Rust. It does not ensure that a function (for yielding values) has Send bounds.","status":"published","published":"2021-08-08T05:11:22Z","modified":"2024-08-04T17:30:07.328Z","updated_at":"2026-11-02T14:35:54.80237Z"}],"euvd":[{"id":"EUVD-2021-1906","description":"An issue was discovered in the generator crate before 0.7.0 for Rust. It does not ensure that a function (for yielding values) has Send bounds.","status":"published","published":"2021-08-08T05:11:22Z","modified":"2024-08-04T17:30:07Z","updated_at":"2026-11-03T03:07:03.010139Z"}],"ghsa":[{"id":"GHSA-w3g5-2848-2v8r","title":"Data races in generator","description":"The `Generator` type is an iterable which uses a generator function that yields\nvalues. In affected versions of the crate, the provided function yielding values\nhad no `Send` bounds despite the `Generator` itself implementing `Send`.\n\nThe generator function lacking a `Send` bound means that types that are\ndangerous to send across threads such as `Rc` could be sent as part of a\ngenerator, potentially leading to data races.\n\nThis flaw was fixed in commit [`f7d120a3b`](https://github.com/Xudong-Huang/generator-rs/commit/f7d120a3b724d06a7b623d0a4306acf8f78cb4f0)\nby enforcing that the generator function be bound by `Send`.","status":"published","published":"2021-08-25T20:57:05Z","modified":"2023-02-03T05:06:15Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:36:43.439065Z"}],"nvd":[{"id":"CVE-2020-36471","description":"An issue was discovered in the generator crate before 0.7.0 for Rust. It does not ensure that a function (for yielding values) has Send bounds.","status":"published","published":"2021-08-08T06:15:08.34Z","modified":"2026-06-17T03:15:33.767Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:06:44.292752Z"}],"osv":[{"id":"CVE-2020-36471","description":"An issue was discovered in the generator crate before 0.7.0 for Rust. It does not ensure that a function (for yielding values) has Send bounds.","status":"published","published":"2021-08-08T06:15:08.34Z","modified":"2026-03-14T10:29:53.193527Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:16.936975Z"},{"id":"DEBIAN-CVE-2020-36471","description":"An issue was discovered in the generator crate before 0.7.0 for Rust. It does not ensure that a function (for yielding values) has Send bounds.","status":"published","published":"2021-08-08T06:15:08.34Z","modified":"2026-10-26T12:02:49.864275088Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:34.019707Z"},{"id":"GHSA-w3g5-2848-2v8r","title":"Data races in generator","description":"The `Generator` type is an iterable which uses a generator function that yields\nvalues. In affected versions of the crate, the provided function yielding values\nhad no `Send` bounds despite the `Generator` itself implementing `Send`.\n\nThe generator function lacking a `Send` bound means that types that are\ndangerous to send across threads such as `Rc` could be sent as part of a\ngenerator, potentially leading to data races.\n\nThis flaw was fixed in commit [`f7d120a3b`](https://github.com/Xudong-Huang/generator-rs/commit/f7d120a3b724d06a7b623d0a4306acf8f78cb4f0)\nby enforcing that the generator function be bound by `Send`.","status":"published","published":"2021-08-25T20:57:05Z","modified":"2023-11-08T04:03:46.86925Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"RUSTSEC-2020-0151","title":"Generators can cause data races if non-Send types are used in their generator functions","description":"The `Generator` type is an iterable which uses a generator function that yields\nvalues. In affected versions of the crate, the provided function yielding values\nhad no `Send` bounds despite the `Generator` itself implementing `Send`.\n\nThe generator function lacking a `Send` bound means that types that are\ndangerous to send across threads such as `Rc` could be sent as part of a\ngenerator, potentially leading to data races.\n\nThis flaw was fixed in commit [`f7d120a3b`](https://github.com/Xudong-Huang/generator-rs/commit/f7d120a3b724d06a7b623d0a4306acf8f78cb4f0)\nby enforcing that the generator function be bound by `Send`.","status":"published","published":"2020-11-16T12:00:00Z","modified":"2023-11-08T04:03:46.86925Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:53:39.492624Z"},{"id":"UBUNTU-CVE-2020-36471","description":"An issue was discovered in the generator crate before 0.7.0 for Rust. It does not ensure that a function (for yielding values) has Send bounds.","status":"published","published":"2021-08-08T06:15:00Z","modified":"2026-10-17T12:56:14.759534051Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:25.179924Z"}]}}
