Skip to content

← Public intelligence

crates.io package

ref-swap

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Unratedcrates.ioPublished

    UB can be reached from safe code

    Affected
    • crates.io ref-swap >= 0.0.0-0, < 0.1.3
    Fixed in
    0.1.3· Vendor fix available
    Issue
    The variance of `RefSwap` and `OptionRefSwap` were incorrect, possibly allowing use-after-free. `OptionRefSwap::into_inner` did not check for null. The fix is to make `RefSwap` and `OptionRefSwap` invariant, and to change `OptionRefSwap::into_inner` to return an option. It is available in version 0.1.3. If your project still compiles with 0.1.3 then it is not affected by the unsoundness on version 0.1.2

    Recommended action: Upgrade to 0.1.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →