GHSA-f95p-4cv5-8w8x
low
linkme fails to ensure slice elements match the slice's declared type
- Severity
- low rating by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2024-0407
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| linkme (crates.io) | before 0.3.24, from 0.0.0-0 before 0.3.24 | GitHub Advisory Database, RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-f95p-4cv5-8w8x changed 2025-10-28 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2024-0407 changed 2025-10-28 | CC0-1.0 |