
Cloud Vulnerability DB
A community-led vulnerabilities database
A high-severity vulnerability was discovered in the self_cell Rust package affecting versions prior to 1.0.2. The issue was reported on November 9, 2023, and officially published to the GitHub Advisory Database on November 14, 2023. The vulnerability stems from an insufficient covariance check mechanism that failed to properly validate dependent type markings (GitHub Advisory, RustSec Advisory).
The vulnerability arose from an insufficient implementation of the _assert_covariance check, which failed to properly verify whether users had correctly marked dependent types as either covariant or not_covariant. This weakness allowed developers to incorrectly mark invariant types (particularly those involving trait object lifetimes) as covariant. A specific example of this issue involves the type Dependent<'a> = RefCell<Box<dyn fmt::Display + 'a>>, which could be incorrectly marked as covariant despite being invariant (GitHub Issue).
The vulnerability could lead to undefined behavior in purely safe user code, potentially compromising the safety guarantees that Rust typically provides. This is particularly concerning as it could manifest in production systems without requiring unsafe code blocks (GitHub Advisory).
The issue has been patched in versions 0.10.3 and 1.0.2 of the self_cell package. The fix implements a more robust compile-time error detection system that prevents marking invariant types as covariant. Users are strongly advised to upgrade to these patched versions (GitHub Advisory, RustSec Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."