{"id":"RUSTSEC-2026-0005","revision":null,"records":[{"revision":"938d5e8823654c128a7af531dcc43d64","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-rvr2-r3pv-5m4p","aliases":["RUSTSEC-2026-0005"],"title":"oneshot has potential Use After Free when used asynchronously","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`.","state":0,"publishedAt":"2026-01-27T00:59:04+00:00","modifiedAt":"2026-09-10T03:50:59.0657217+00:00","affected":[{"ecosystem":"crates.io","name":"oneshot","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.1.12"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/faern/oneshot/issues/73","https://github.com/rustsec/advisory-db/pull/2600","https://github.com/faern/oneshot/commit/d1a1506010bc48962634807d0dcca682af4f50ba","https://github.com/faern/oneshot","https://rustsec.org/advisories/RUSTSEC-2026-0005.html"],"sourceUrl":"https://github.com/advisories/GHSA-rvr2-r3pv-5m4p","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-rvr2-r3pv-5m4p","identifiers":["GHSA-rvr2-r3pv-5m4p","RUSTSEC-2026-0005"]},"retained":false,"historicalAffected":[]},{"revision":"f2ac69c1183843fcb23a03a57625c27e","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2026-0005","aliases":["GHSA-rvr2-r3pv-5m4p"],"title":"Potential use-after-free in `oneshot` when used asynchronously","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`.","state":0,"publishedAt":"2026-01-25T12:00:00+00:00","modifiedAt":"2026-01-27T06:11:17.438685+00:00","affected":[{"ecosystem":"crates.io","name":"oneshot","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.1.2-0"},{"kind":"fixed","version":"0.1.12"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/oneshot","https://rustsec.org/advisories/RUSTSEC-2026-0005.html","https://github.com/faern/oneshot/issues/73"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2026-0005","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2026-0005","identifiers":["RUSTSEC-2026-0005","GHSA-rvr2-r3pv-5m4p"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T03:30:47.3393218+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T03:30:47.3393218+00:00","lastSuccessAt":"2026-11-16T03:30:47.5025306+00:00","error":null,"lastVerifiedAt":"2026-11-16T03:30:47.5025309+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-8b6e139a850cc2a6b5126012e32ec45c19d4370854306148d5d13635a0c0a1af","complete":true,"records":425878,"lastAttemptAt":"2026-11-16T03:30:46.3350863+00:00","lastSuccessAt":"2026-11-16T03:30:46.3223223+00:00","error":null,"lastVerifiedAt":"2026-11-16T03:30:46.3350863+00:00","snapshotPublishedAt":"2026-11-16T03:21:35+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7f4d8e8cc74e464e8c34a5ac0fac1a36","complete":false,"records":13821,"lastAttemptAt":"2026-11-16T03:41:34.8714449+00:00","lastSuccessAt":"2026-11-16T03:41:34.867+00:00","error":"130 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T03:41:34.867+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13744,"expectedIdentifiers":13874,"failedIdentifiers":130},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T03:30:47.3393218+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T03:30:47.3393218+00:00","lastSuccessAt":"2026-11-16T03:30:47.5032731+00:00","error":null,"lastVerifiedAt":"2026-11-16T03:30:47.5032733+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-cb821c14db734923a70a6d3bd1f879f3","complete":false,"records":13833,"lastAttemptAt":"2026-11-16T03:32:46.8084817+00:00","lastSuccessAt":"2026-11-16T03:32:46.807+00:00","error":"100 identifier lookups failed; latest failures include HttpIOException. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T03:32:46.807+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13774,"expectedIdentifiers":13874,"failedIdentifiers":100},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T03:30:47.2794701+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T03:30:47.2794701+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T03:30:46.7173041+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T03:30:46.7173041+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T03:30:47.2950864+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T03:30:47.2950864+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-e77c8ea93875d599a3ee92fde74c7150d1a28eacc697b92dc129baff6877c60e","complete":true,"records":232477,"lastAttemptAt":"2026-11-16T03:30:47.1761328+00:00","lastSuccessAt":"2026-11-16T01:07:48.2266333+00:00","error":null,"lastVerifiedAt":"2026-11-16T03:30:47.1761328+00:00","snapshotPublishedAt":"2026-11-16T01:03:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}