RUSTSEC-2024-0407

    Dashboard / Vulnerabilities / RUSTSEC-2024-0407

    RUSTSEC-2024-0407

    Published: 5 Mar 2024Last Modified: 28 Oct 2025

    Summary: Fails to ensure slice elements match the slice's declared type

    Details: 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

    Package

    Name: linkme

    Purl: pkg:cargo/linkme

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -0.3.24

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    RUSTSEC-2024-0407 | CVE-DB