Every CVESearch/Get API key

GHSA-f95p-4cv5-8w8x

linkme fails to ensure slice elements match the slice's declared type

No scoreFix available

GHSA-f95p-4cv5-8w8x is a vulnerability with no CVSS score yet in linkme, published March 5, 2024. No source lists public exploit code. Fixed in linkme 0.3.24.

What does this mean?
Severity
UnratedNo CVSS score yet
Exploit chance
UnscoredNo EPSS score yet
Exploitation
None knownNot on CISA’s or ENISA’s lists
Fixed in
0.3.24linkme +1 more

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 packages

Affected packages
PackageAffectedFixed
linkme
crates.io
before 0.3.24
0.3.24
linkme
crates.io
0.0.0-0 up to 0.3.24
0.3.24

What each source reports

GitHub AdvisoriesNo score

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

Record
GHSA-f95p-4cv5-8w8x
Updated
2026-11-02
OSVNo score

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

Record
GHSA-f95p-4cv5-8w8x
Updated
2026-11-02
OSVRUSTSEC-2024-0407No score

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.

Record
RUSTSEC-2024-0407
Updated
2026-11-02

History

History
RecordedChangedSources
first indexedGitHub Advisories, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

MoveEnter Open