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

Not scored Published

Undefined behavior in im::OrdSet insertion allows memory corruption, potentially leading to code execution or crashes in applications using this unmaintained Rust library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
None listed

What is RUSTSEC-2023-0126?

RUSTSEC-2023-0126 is a memory corruption vulnerability in im, published on 4 Feb 2023.

Official 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.

Which versions are affected by RUSTSEC-2023-0126?

1 open source package ship an affected version, including im.

PackageAffectedFixed in
im crates.ioFrom 0.0.0-0None

How do I fix RUSTSEC-2023-0126?

No fix has been published for RUSTSEC-2023-0126 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is RUSTSEC-2023-0126 being exploited?

There is no known exploitation of RUSTSEC-2023-0126 in the wild and no public exploit code.

Sources

Is RUSTSEC-2023-0126 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free