Advisory

GHSA-f95p-4cv5-8w8x

Also known as: RUSTSEC-2024-0407

Summary

linkme 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

Low Basis: The source's own band: LOW

Dates

Published
2024-12-04 18:26 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

linkme

crates.io · All systems

Affected

  • introduced 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences