{"id":"RUSTSEC-2026-0528","aliases":[],"title":"UB can be reached from safe code","titleSource":"OSV","descriptionSource":"OSV","description":"The variance of `RefSwap` and `OptionRefSwap` were incorrect, possibly allowing use-after-free.\n\n`OptionRefSwap::into_inner` did not check for null.\n\nThe fix is to make `RefSwap` and `OptionRefSwap` invariant, and to change `OptionRefSwap::into_inner` to return an option.\nIt is available in version 0.1.3.\nIf your project still compiles with 0.1.3 then it is not affected by the unsoundness on version 0.1.2","severity":"unknown","score":null,"published":"2026-11-12T12:00:00.000Z","modified":"2026-11-13T12:45:06.399Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"ref-swap","sources":[{"name":"OSV · RUSTSEC-2026-0528","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0528"}],"ranges":[{"events":[{"introduced":"0.0.0-0"},{"fixed":"0.1.3"}],"type":"SEMVER"}],"versions":[],"fixed":["0.1.3"]}],"sourceAffected":[],"references":["https://crates.io/crates/ref-swap","https://rustsec.org/advisories/RUSTSEC-2026-0528.html","https://github.com/Nitrokey/ref-swap/releases/tag/v0.1.3"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0528","modified":"2026-11-13T12:45:06.399026502Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0528"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-13T19:08:22.463Z","kev":{"status":"unavailable","checkedAt":"2026-11-28T23:15:32.077Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}