{"id":"RUSTSEC-2023-0126","aliases":["RUSTSEC-2023-0126"],"related":[],"kind":"vulnerability","state":"published","title":"Aliasing violation in `OrdSet` insertion","summary":"Inserting into an `im::OrdSet` (for example by collecting an iterator into one) can violate\nRust's aliasing rules: Miri reports a stacked borrows violation in\n`sized_chunks::Chunk::force_copy()`, which is called during insertion, where a shared borrow\nis invalidated by a unique borrow before the read through it completes.\nThis is undefined behavior, reachable from safe code.\n\nNo fixed version is available, as the crate is unmaintained; its GitHub\nrepository was archived by the owner on 2026-05-03.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"Inserting into an `im::OrdSet` (for example by collecting an iterator into one) can violate\nRust's aliasing rules: Miri reports a stacked borrows violation in\n`sized_chunks::Chunk::force_copy()`, which is called during insertion, where a shared borrow\nis invalidated by a unique borrow before the read through it completes.\nThis is undefined behavior, reachable from safe code.\n\nNo fixed version is available, as the crate is unmaintained; its GitHub\nrepository was archived by the owner on 2026-05-03.","format":"markdown","source":"rustsec"}],"published":"2023-02-04T12:00:00.000Z","modified":"2026-08-10T19:45:04.530Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"im","purl":"pkg:cargo/im","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/im","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0126.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/bodil/im-rs/issues/207","tags":["report"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0126","url":"https://rustsec.org/advisories/RUSTSEC-2023-0126.html","licence":"CC0-1.0","modified":"2026-08-10T19:45:04.530Z"}],"updatedAt":"2026-11-25T22:56:43.180Z"}