Insufficient covariance check makes self_cell unsound
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
All public versions prior to `1.02` used an insufficient check to ensure that users correctly marked the dependent type as either `covariant` or `not_covariant`. This allowed users to mark a dependent as covariant even though its type was not covariant but invariant, for certain invariant types involving trait object lifetimes. One example for such a dependent type is `type Dependent<'a> = RefCell<Box<dyn fmt::Display + 'a>>`. Such a type allowed unsound usage in purely safe user code that leads to undefined behavior. The patched versions now produce a compile time error if such a type is marked as `covariant`.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | self_cell (crates.io) | before 0.10.3 | 0.10.3 | Patch available | GHSA-48m6-wm5p-rr6h |
| — | self_cell (crates.io) | 1.0.0 to before 1.0.2 | 1.0.2 | Patch available | GHSA-48m6-wm5p-rr6h |
- self_cell (crates.io) Vendor— Affected before 0.10.3 Fixed in 0.10.3 Patch available GHSA-48m6-wm5p-rr6h
- self_cell (crates.io) Vendor— Affected 1.0.0 to before 1.0.2 Fixed in 1.0.2 Patch available GHSA-48m6-wm5p-rr6h
Remediation
- Fix · GHSA-48m6-wm5p-rr6h self_cell (crates.io) Fixed in 0.10.3 Advisory →
- Fix · GHSA-48m6-wm5p-rr6h self_cell (crates.io) Fixed in 1.0.2 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-48m6-wm5p-rr6h
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences