{"id":"RUSTSEC-2019-0023","summary":"Cloned interners may read already dropped strings","details":"Affected versions of this crate did not clone contained strings when an interner is cloned.\nInterners have raw pointers to the contained strings, and they keep pointing the strings which the old interner owns, after the interner is cloned.\nIf a new cloned interner is alive and the old original interner is dead, the new interner has dangling pointers to the old interner's storage, which is already dropped.\n\nThis allows an attacker to read the already freed memory.\nThe dangling pointers are used by the interners to check a string is already interned.\nAn attacker can do brute force attack to get the data pointed by the dangling pointer.\n\nThe flaw was corrected by \u003chttps://github.com/Robbepop/string-interner/pull/10\u003e.\nThis patch implements `Clone` manually to the interner type, so that the internal raw pointers always point the strings owned by the same interner.\n\nPR #10 was also backported to the 0.6 release line in\n\u003chttps://github.com/Robbepop/string-interner/pull/14\u003e and was released in 0.6.4.","aliases":["CVE-2019-16882","GHSA-49fq-pw77-6qxj"],"modified":"2023-11-08T04:01:22.202134Z","published":"2019-08-24T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/string-interner"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2019-0023.html"},{"type":"REPORT","url":"https://github.com/Robbepop/string-interner/issues/9"}],"affected":[{"package":{"name":"string-interner","ecosystem":"crates.io","purl":"pkg:cargo/string-interner"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.6.4"},{"introduced":"0.7.0-0"},{"fixed":"0.7.1"}]}],"ecosystem_specific":{"affects":{"arch":[],"os":[],"functions":[]},"affected_functions":null},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0023.json","informational":null,"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","categories":[]}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}