Advisory

RUSTSEC-2024-0407

Also known as: GHSA-f95p-4cv5-8w8x

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.

Severity

Not rated by the source.

Dates

Published
2024-03-05 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

linkme

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.24 (semver)

Fixed versions

0.3.24

Fix

  • Fixed version 0.3.24
    cargo update -p linkme --precise 0.3.24

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences