{"answers":{"affected":"3 open source packages ship an affected version, including oneshot.","exploited":"There is no known exploitation of GHSA-rvr2-r3pv-5m4p in the wild and no public exploit code.","fix":"Upgrade oneshot to 0.1.12 or later.","what":"GHSA-rvr2-r3pv-5m4p is an use after free vulnerability in oneshot, published on 25 Jan 2026."},"fix_prompt":"Check this codebase for GHSA-rvr2-r3pv-5m4p and fix it if it is affected.\n\nWhat it is: GHSA-rvr2-r3pv-5m4p is an use after free vulnerability in oneshot, published on 25 Jan 2026. \nExploitation: There is no known exploitation of GHSA-rvr2-r3pv-5m4p in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- oneshot (crates.io): affected all versions; fixed in 0.1.12\n- oneshot (crates.io): affected all versions; fixed in 0.1.12\n- oneshot (crates.io): affected from 0.1.2-0; fixed in 0.1.12\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-rvr2-r3pv-5m4p/ (Markdown: https://insights.sbomify.com/GHSA-rvr2-r3pv-5m4p/index.md)","id":"GHSA-rvr2-r3pv-5m4p","markdown":"https://insights.sbomify.com/GHSA-rvr2-r3pv-5m4p/index.md","name":"GHSA-rvr2-r3pv-5m4p","record":{"aliases":["RUSTSEC-2026-0005"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust oneshot library","requires_auth":"none","summary":"A race condition in the oneshot Rust library allows use-after-free when a receiver is dropped during polling, potentially leading to code execution or crashes.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"There is a race condition that can lead to a use-after-free if a `oneshot::Receiver` is polled but then dropped instead of polled to completion. This could happen if the receiver future was cancelled while receiving, for example by being wrapped in a timeout future or similar.\n\nWhen the `Receiver` is polled (`Future::poll`) it writes a waker to the channel and sets it to the `RECEIVING` state. If the `Receiver` was then dropped (instead of polled to completion), the `Drop` implementation on `Receiver` unconditionally swapped the channel state to `DISCONNECTED` and only after doing so it read back its waker from the heap allocation and dropped it. The problem is that the `DISCONNECTED` state could be observed by the `Sender`, which would lead to it deallocating the channel heap memory. If the `Sender` manage to free the channel before the `Receiver` managed to proceed to dropping the waker, then the `Receiver` would read from the freed channel memory (Use After Free).\n\nThe fix was submitted in https://github.com/faern/oneshot/pull/74 and published as part of `oneshot` version `0.1.12`.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"oneshot has potential Use After Free when used asynchronously","id":"GHSA-rvr2-r3pv-5m4p","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"use_after_free","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.1.12"],"introduced":["0"],"last_affected":[],"package":"oneshot","purl":null,"source":"GHSA-rvr2-r3pv-5m4p"},{"ecosystem":"crates.io","fixed":["0.1.12"],"introduced":["0"],"last_affected":[],"package":"oneshot","purl":"pkg:cargo/oneshot","source":"GHSA-rvr2-r3pv-5m4p"},{"ecosystem":"crates.io","fixed":["0.1.12"],"introduced":["0.1.2-0"],"last_affected":[],"package":"oneshot","purl":"pkg:cargo/oneshot","source":"RUSTSEC-2026-0005"}],"products":null,"published":"2026-01-25","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A race condition in the oneshot Rust library allows use-after-free when a receiver is dropped during polling, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/GHSA-rvr2-r3pv-5m4p/"}