GHSA-f95p-4cv5-8w8x
LOWlinkme fails to ensure slice elements match the slice's declared type
Affected versions allow populating a DistributedSlice of T with elements of an arbitrary other type that coerces to T. For example, elements of type &&str could end up in a slice of type [&str], since &&str coerces to &str via a deref coercion.
The flaw was corrected by implementing typechecking for distributed slice elements in such a way that coercion no longer occurs. The element's type must be a subtype of the slice's declared element type.
- Published
- 5 Mar 2024
- Last modified
- 28 Oct 2025
- Also known as
- RUSTSEC-2024-0407
- Sources
- OSVJSONOSV RUSTSEC-2024-0407JSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | linkme | < 0.3.24 | 0.3.24 |
| OSV | crates.io | linkme | >= 0.0.0-0, < 0.3.24 | 0.3.24 |
References
- https://github.com/dtolnay/linkme/issues/82 · WEB, REPORT
- https://github.com/dtolnay/linkme · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0407.html · WEB, ADVISORY
- https://crates.io/crates/linkme · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Mar 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Dec 2024)