{"id":"CVE-2021-28037","aliases":["EUVD-2021-1727","GHSA-gppw-3h6h-v6q2","RUSTSEC-2021-0036"],"status":"published","title":"Data race in internment","description":"An issue was discovered in the internment crate before 0.4.2 for Rust. There is a data race that can cause memory corruption because of the unconditional implementation of Sync for Intern\u003cT\u003e.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01295,"percentile":0.70534,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-362"],"published":"2021-03-03T12:00:00Z","modified":"2026-06-17T03:45:45Z","fixes":[{"ecosystem":"crates.io","package":"internment","fixed_in":["0.4.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"internment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"internment","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"internment","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.4.2"}]}]}],"products":[{"vendor":"internment_project","product":"internment"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0036.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28037","tags":["advisory"]},{"url":"https://github.com/droundy/internment/issues/20","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-gppw-3h6h-v6q2"},{"url":"https://github.com/droundy/internment","tags":["package"]},{"url":"https://crates.io/crates/internment","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-28037","description":"An issue was discovered in the internment crate before 0.4.2 for Rust. There is a data race that can cause memory corruption because of the unconditional implementation of Sync for Intern\u003cT\u003e.","status":"published","published":"2021-03-05T08:38:34Z","modified":"2024-08-03T21:33:17.252Z","updated_at":"2026-11-02T14:33:08.811269Z"}],"euvd":[{"id":"EUVD-2021-1727","description":"An issue was discovered in the internment crate before 0.4.2 for Rust. There is a data race that can cause memory corruption because of the unconditional implementation of Sync for Intern\u003cT\u003e.","status":"published","published":"2021-03-05T08:38:34Z","modified":"2024-08-03T21:33:17Z","updated_at":"2026-11-03T03:24:47.80549Z"}],"ghsa":[{"id":"GHSA-gppw-3h6h-v6q2","title":"Data race in internment","description":"An issue was discovered in the internment crate before 0.4.2 for Rust. There is a data race that can cause memory corruption because of the unconditional implementation of Sync for Intern\u003cT\u003e.","status":"published","published":"2021-08-25T20:52:08Z","modified":"2023-01-09T05:05:14Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:36:11.367194Z"}],"nvd":[{"id":"CVE-2021-28037","description":"An issue was discovered in the internment crate before 0.4.2 for Rust. There is a data race that can cause memory corruption because of the unconditional implementation of Sync for Intern\u003cT\u003e.","status":"published","published":"2021-03-05T09:15:14.44Z","modified":"2026-06-17T03:45:45.617Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:06:50.399901Z"}],"osv":[{"id":"GHSA-gppw-3h6h-v6q2","title":"Data race in internment","description":"An issue was discovered in the internment crate before 0.4.2 for Rust. There is a data race that can cause memory corruption because of the unconditional implementation of Sync for Intern\u003cT\u003e.","status":"published","published":"2021-08-25T20:52:08Z","modified":"2023-11-08T04:05:28.032734Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T15:46:48.191583Z"},{"id":"RUSTSEC-2021-0036","title":"Intern\u003cT\u003e: Data race allowed on T","description":"Affected versions of this crate unconditionally implements `Sync` for `Intern\u003cT\u003e`.\nThis allows users to create data race on `T: !Sync`, which may lead to undefined behavior\n(for example, memory corruption).\n\nThe flaw was corrected in commit 2928a87 by adding the trait bound `T: Sync` in the `Sync` impl of `Intern\u003cT\u003e`.","status":"published","published":"2021-03-03T12:00:00Z","modified":"2023-11-08T04:05:28.032734Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
