{"id":"CVE-2020-35874","aliases":["CVE-2020-35874","GHSA-96w3-p368-4h8c","RUSTSEC-2020-0017"],"related":[],"kind":"vulnerability","state":"published","title":"Use after free in internment","summary":"An issue was discovered in the internment crate through 2020-05-28 for Rust. ArcIntern::drop has a race condition and resultant use-after-free.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the internment crate through 2020-05-28 for Rust. ArcIntern::drop has a race condition and resultant use-after-free.","source":"cvelist"},{"lang":"en","text":"ArcIntern::drop has a race condition where it can release memory which is about to get another user. The new user will get a reference to freed memory.\n\nThis was fixed by serializing access to an interned object while it is being deallocated.\n\nVersions prior to 0.3.12 used stronger locking which avoided the problem.","format":"markdown","source":"ghsa"},{"lang":"en","text":"`ArcIntern::drop` has a race condition where it can release memory\nwhich is about to get another user. The new user will get a reference\nto freed memory.\n\nThis was fixed by serializing access to an interned object while it\nis being deallocated.\n\nVersions prior to 0.3.12 used stronger locking which avoided the problem.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate internment hasta el 28-05-2020 para Rust.&#xa0;La función ArcIntern::drop presenta una condición de carrera y un uso de la memoria previamente liberada resultante.","source":"nvd"}],"published":"2020-05-28T12:00:00.000Z","modified":"2026-06-17T03:14:30.673Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-362","CWE-416"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.12","status":"affected","fixed":"0.4.0"}],"ecosystem":"crates.io","package":"internment","purl":"pkg:cargo/internment","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.12","status":"affected","fixed":"0.4.0"}],"ecosystem":"crates.io","package":"internment","purl":"pkg:cargo/internment","source":"rustsec"},{"ranges":[{"status":"affected","version":"0.3.12"}],"vendor":"internment_project","product":"internment","cpe":"cpe:2.3:a:internment_project:internment:0.3.12:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0017.html","tags":["advisory","exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35874","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/droundy/internment/issues/11","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-2020-35874","url":"https://www.cve.org/CVERecord?id=CVE-2020-35874","licence":"CVE Terms of Use","modified":"2024-08-04T17:16:13.232Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-96w3-p368-4h8c","url":"https://github.com/advisories/GHSA-96w3-p368-4h8c","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:36.887Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0017","url":"https://rustsec.org/advisories/RUSTSEC-2020-0017.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:36.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-35874","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35874","licence":"Public domain","modified":"2026-06-17T03:14:30.673Z"}],"updatedAt":"2026-11-25T22:57:56.683Z","epss":{"score":0.00969,"percentile":0.62875,"date":"2026-12-01T12:00:22.000Z"}}