Advisory Published
Updated

GHSA-48m6-wm5p-rr6h

First published: Tue Nov 14 2023(Updated: )

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`.

Affected SoftwareAffected VersionHow to fix
rust/self_cell>=1.0.0<1.0.2
1.0.2
rust/self_cell<0.10.3
0.10.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID?

    The vulnerability ID is GHSA-48m6-wm5p-rr6h.

  • What is the title of the vulnerability?

    The title of the vulnerability is 'All public versions prior to `1.02` used an insufficient check to ensure that users correctly marked...'

  • What software versions are affected?

    All public versions prior to 1.02 are affected.

  • How can I fix this vulnerability?

    To fix this vulnerability, update to version 1.02 or higher.

  • Are there any references I can check for more information?

    Yes, you can check the following references for more information: [GitHub issue #49](https://github.com/Voultapher/self_cell/issues/49), [RustSec advisory RUSTSEC-2023-0070](https://rustsec.org/advisories/RUSTSEC-2023-0070.html), [GitHub advisory GHSA-48m6-wm5p-rr6h](https://github.com/advisories/GHSA-48m6-wm5p-rr6h).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203