Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS00OG02LXdtNXAtcnI2aM4AA3Hq

Insufficient covariance check makes self_cell unsound

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.

Permalink: https://github.com/advisories/GHSA-48m6-wm5p-rr6h
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00OG02LXdtNXAtcnI2aM4AA3Hq
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 1 year ago
Updated: about 1 year ago


Identifiers: GHSA-48m6-wm5p-rr6h
References: Repository: https://github.com/Voultapher/self_cell
Blast Radius: 0.0

Affected Packages

cargo:self_cell
Dependent packages: 32
Dependent repositories: 584
Downloads: 8,142,772 total
Affected Version Ranges: >= 1.0.0, < 1.0.2, < 0.10.3
Fixed in: 1.0.2, 0.10.3
All affected versions: 0.7.0, 0.7.1, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.10.1, 0.10.2, 1.0.0, 1.0.1
All unaffected versions: 0.10.3, 1.0.2, 1.0.3, 1.0.4