Unsound MediumRUSTSEC-2020-0096 · im
RUSTSEC-2020-0096: TreeFocus lacks bounds on its Send and Sync traits
Short answerim has an API that can cause undefined behaviour from safe code: TreeFocus lacks bounds on its Send and Sync traits. Fixed in 15.1.0.
| Crate | im |
|---|---|
| Type | Unsound (thread-safety) |
| Affected versions | From 12.0.0 before 15.1.0. |
| Fixed in | 15.1.0 |
| Severity | Medium, CVSS 4.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Published | 2020-11-09 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2020-36204, GHSA-q9h2-4xhf-23xx |
What to do
- See which version you have:
cargo tree -i im(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p im. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleim = "15.1.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Affected versions of im contains TreeFocus that unconditionally implements Send and Sync.
This allows a data race in safe Rust code if TreeFocus is extracted from Focus type. Typical users that only use Focus type are not affected.
References
- Package: crates.io/crates/im
- Advisory: rustsec.org/advisories/RUSTSEC-2020-0096.html
- Report: github.com/bodil/im-rs/issues/157
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for im
Up next
Same crateim: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?