GHSA-f95p-4cv5-8w8x
JSON

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 packageVersionsReported by
linkme (crates.io)before 0.3.24, from 0.0.0-0 before 0.3.24GitHub Advisory Database, RustSec Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-f95p-4cv5-8w8x changed 2025-10-28CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2024-0407 changed 2025-10-28CC0-1.0