{"id":"CVE-2020-35874","aliases":["EUVD-2021-1652","GHSA-96w3-p368-4h8c","RUSTSEC-2020-0017"],"status":"published","title":"Use after free in internment","description":"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.","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-09","score":0.00969,"percentile":0.62112,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-362","CWE-416"],"published":"2020-05-28T12:00:00Z","modified":"2026-06-17T03:14:30Z","fixes":[{"ecosystem":"crates.io","package":"internment","fixed_in":["0.4.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"internment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.3.12"},{"fixed":"0.4.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"internment","ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.12"},{"fixed":"0.4.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"internment","ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.12"},{"fixed":"0.4.0"}]}]}],"products":[{"vendor":"internment_project","product":"internment"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0017.html","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35874","tags":["advisory"]},{"url":"https://github.com/droundy/internment/issues/11","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-96w3-p368-4h8c"},{"url":"https://github.com/droundy/internment","tags":["package"]},{"url":"https://crates.io/crates/internment","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-35874","description":"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.","status":"published","published":"2020-12-31T08:27:43Z","modified":"2024-08-04T17:16:13.232Z","updated_at":"2026-11-02T14:35:57.975444Z"}],"euvd":[{"id":"EUVD-2021-1652","description":"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.","status":"published","published":"2020-12-31T08:27:43Z","modified":"2024-08-04T17:16:13Z","updated_at":"2026-11-03T03:07:04.595509Z"}],"ghsa":[{"id":"GHSA-96w3-p368-4h8c","title":"Use after free in internment","description":"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.","status":"published","published":"2021-08-25T20:46:51Z","modified":"2023-06-13T18:17:01Z","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-362"],"updated_at":"2026-11-02T14:36:53.654352Z"}],"nvd":[{"id":"CVE-2020-35874","description":"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.","status":"published","published":"2020-12-31T10:15:15.753Z","modified":"2026-06-17T03:14:30.673Z","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","CWE-416"],"updated_at":"2026-11-02T14:06:28.340168Z"}],"osv":[{"id":"GHSA-96w3-p368-4h8c","title":"Use after free in internment","description":"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.","status":"published","published":"2021-08-25T20:46:51Z","modified":"2023-11-08T04:03:36.887095Z","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-362"],"updated_at":"2026-11-02T15:46:43.524801Z"},{"id":"RUSTSEC-2020-0017","title":"Use after free in ArcIntern::drop","description":"`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.","status":"published","published":"2020-05-28T12:00:00Z","modified":"2023-11-08T04:03:36.887095Z","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"}]}}
