Skip to content

Security: lru 0.12.5 dependency has Stacked Borrows violation (GHSA-xpfx-fvgv-hgqp) #148

@michaeloboyle

Description

@michaeloboyle

Summary

The ruvllm crate (v2.0.1) depends on lru 0.12.5, which has a known security advisory:

  • Advisory: GHSA-xpfx-fvgv-hgqp
  • Severity: LOW (Cargo audit) / Moderate (GitHub)
  • Issue: IterMut Stacked Borrows violation — unsound use of unsafe code in lru::IterMut
  • Fixed in: lru >= 0.13.0

Reproduction

$ cargo audit
Crate:  lru
Version: 0.12.5
Warning: unsound
ID:     RUSTSEC-2024-0404

Impact

Downstream consumers of ruvllm (e.g. ruvllm-enrichment) inherit this transitive dependency and cannot override it via [patch.crates-io] since lru is published on the same registry source.

Requested Fix

Update the lru dependency in ruvllm from 0.12.x to 0.16.3 (or latest). Note that 0.12 → 0.13+ is a semver-breaking change for 0.x crates, so this requires a version bump.

Environment

  • ruvllm: 2.0.1
  • lru: 0.12.5 (transitive)
  • Rust: stable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions