{"id":"GHSA-96w3-p368-4h8c","summary":"Use after free in internment","details":"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.","aliases":["CVE-2020-35874","RUSTSEC-2020-0017"],"modified":"2023-11-08T04:03:36.887095Z","published":"2021-08-25T20:46:51Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-362"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-08-19T21:19:06Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35874"},{"type":"WEB","url":"https://github.com/droundy/internment/issues/11"},{"type":"PACKAGE","url":"https://github.com/droundy/internment"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0017.html"}],"affected":[{"package":{"name":"internment","ecosystem":"crates.io","purl":"pkg:cargo/internment"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.12"},{"fixed":"0.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-96w3-p368-4h8c/GHSA-96w3-p368-4h8c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}