CVE-2020-36204: Open Source Vulnerability in im Package - TreeFocus lacks bounds on its Send and Sync traits
Summary
CVE-2020-36204: TreeFocus lacks bounds on its Send and Sync traits. Affects im versions >= 12.0.0, < 15.1.0. Fixed in 15.1.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The im package is an open-source library available on crates.io. It provides immutable data structures for Rust programming language. One of the components in the package is TreeFocus, which is used to represent a focused view of a tree-like structure. However, versions of im prior to 15.1.0 contain a vulnerability in TreeFocus where it unconditionally implements the Send and Sync traits. This can lead to data races in safe Rust code if TreeFocus is extracted from the Focus type. Typical users who only use the Focus type are not affected by this vulnerability.
Vulnerability Detail
The vulnerability in im package arises from the unconditional implementation of Send and Sync traits in TreeFocus. This can result in data races in safe Rust code when TreeFocus is extracted from the Focus type. Data races can lead to unpredictable behavior and incorrect results in concurrent or parallel execution. It is important to note that this vulnerability only affects users who directly use the TreeFocus type.
How To Fix
Latest published version: 15.1.0 as of 23 Oct 2026
The newest release already contains this fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. Users are advised to upgrade to the fixed version of the im package as mentioned in the 'how_to_fix' section.
Conclusion
The im package prior to version 15.1.0 contains a vulnerability in the TreeFocus component, where it unconditionally implements the Send and Sync traits. This can lead to data races in safe Rust code. Users of the package are advised to upgrade to version 15.1.0 or later to fix the vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for im →
FAQ
This vulnerability affects users of the im package who directly use the TreeFocus type. Users who only use the Focus type are not affected.
The vulnerability can lead to data races in safe Rust code, resulting in unpredictable behavior and incorrect results in concurrent or parallel execution.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Cargo.lock file and the playground will analyze it for open-source vulnerabilities, including this one.
Yes, the CVSS score for this vulnerability is 4.7.
You can find more information about this vulnerability, including its source and advisory details, at https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0096.json
References
Related vulnerabilities
Recent vulnerabilities recorded for im.