RUSTSEC-2024-0407

Source
https://rustsec.org/advisories/RUSTSEC-2024-0407
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0407.json
JSON Data
https://api.test.osv.dev/v1/vulns/RUSTSEC-2024-0407
Aliases
Published
2024-03-05T12:00:00Z
Modified
2025-10-28T06:29:51.604102Z
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / linkme

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.3.24

Ecosystem specific

{
    "affects": {
        "os": [],
        "arch": [],
        "functions": []
    },
    "affected_functions": null
}

Database specific

categories

[]

cvss

null

informational

"unsound"