# RUSTSEC-2023-0126: Aliasing violation in `OrdSet` insertion

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-02-04T12:00:00.000Z
- Modified: 2026-08-10T19:45:04.530Z

## Description

Inserting into an `im::OrdSet` (for example by collecting an iterator into one) can violate
Rust's aliasing rules: Miri reports a stacked borrows violation in
`sized_chunks::Chunk::force_copy()`, which is called during insertion, where a shared borrow
is invalidated by a unique borrow before the read through it completes.
This is undefined behavior, reachable from safe code.

No fixed version is available, as the crate is unmaintained; its GitHub
repository was archived by the owner on 2026-05-03.

(As written by RustSec Advisory Database.)

## Affected

- im (crates.io): from 0.0.0-0

## References

- <https://crates.io/crates/im> (package)
- <https://rustsec.org/advisories/RUSTSEC-2023-0126.html> (advisory)
- <https://github.com/bodil/im-rs/issues/207> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2023-0126](https://rustsec.org/advisories/RUSTSEC-2023-0126.html), CC0-1.0, modified 2026-08-10

---

Page: https://cve.day/RUSTSEC-2023-0126 · Whole record: https://cve.day/RUSTSEC-2023-0126.json · Rebuilt by cve.day 2026-11-25T22:56:43.180Z
