{"id":"GHSA-f95p-4cv5-8w8x","aliases":["GHSA-f95p-4cv5-8w8x","RUSTSEC-2024-0407"],"related":[],"kind":"vulnerability","state":"published","title":"linkme fails to ensure slice elements match the slice's declared type","summary":"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.\n\nThe 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\nThe 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.","format":"markdown","source":"ghsa"}],"published":"2024-03-05T12:00:00.000Z","modified":"2025-10-28T06:29:24.336Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.24"}],"ecosystem":"crates.io","package":"linkme","purl":"pkg:cargo/linkme","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.3.24"}],"ecosystem":"crates.io","package":"linkme","purl":"pkg:cargo/linkme","source":"rustsec"}],"references":[{"url":"https://github.com/dtolnay/linkme/issues/82","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/dtolnay/linkme","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0407.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/linkme","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f95p-4cv5-8w8x","url":"https://github.com/advisories/GHSA-f95p-4cv5-8w8x","licence":"CC-BY-4.0","modified":"2025-10-28T06:29:24.336Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2024-0407","url":"https://rustsec.org/advisories/RUSTSEC-2024-0407.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:24.336Z"}],"updatedAt":"2026-11-25T22:56:43.226Z"}