{"id":"CVE-2021-28037","aliases":["CVE-2021-28037","GHSA-gppw-3h6h-v6q2","RUSTSEC-2021-0036"],"related":[],"kind":"vulnerability","state":"published","title":"Data race in internment","summary":"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<T>.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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<T>.","source":"cvelist"},{"lang":"en","text":"Affected versions of this crate unconditionally implements `Sync` for `Intern<T>`.\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<T>`.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate internment versiones anteriores a 0.4.2 para Rust.&#xa0;Se presenta una carrera de datos que puede causar una corrupción en la memoria debido a la implementación incondicional de Sync para Intern(T)","source":"nvd"}],"published":"2021-03-03T12:00:00.000Z","modified":"2026-06-17T03:45:45.617Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.2"}],"ecosystem":"crates.io","package":"internment","purl":"pkg:cargo/internment","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.4.2"}],"ecosystem":"crates.io","package":"internment","purl":"pkg:cargo/internment","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.4.2"}],"vendor":"internment_project","product":"internment","cpe":"cpe:2.3:a:internment_project:internment:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0036.html","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28037","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/droundy/internment/issues/20","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/droundy/internment","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/internment","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28037","url":"https://www.cve.org/CVERecord?id=CVE-2021-28037","licence":"CVE Terms of Use","modified":"2024-08-03T21:33:17.252Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gppw-3h6h-v6q2","url":"https://github.com/advisories/GHSA-gppw-3h6h-v6q2","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:28.032Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0036","url":"https://rustsec.org/advisories/RUSTSEC-2021-0036.html","licence":"CC0-1.0","modified":"2023-11-08T04:05:28.032Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28037","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28037","licence":"Public domain","modified":"2026-06-17T03:45:45.617Z"}],"updatedAt":"2026-11-25T22:58:00.156Z","epss":{"score":0.01311,"percentile":0.71498,"date":"2026-12-01T12:00:22.000Z"}}