{"id":"GHSA-rvr2-r3pv-5m4p","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-16T09:30:47.1166095+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T09:30:47.1166095+00:00","lastSuccessAt":"2026-11-16T09:30:47.3012852+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:47.3012856+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-e8c0fd52b22e21457e27693534cefbf2ce40d1a855ef724003125529c54ea7a9","complete":true,"records":425884,"lastAttemptAt":"2026-11-16T09:30:46.3465485+00:00","lastSuccessAt":"2026-11-16T09:30:46.3345916+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:46.3465485+00:00","snapshotPublishedAt":"2026-11-16T08:36:58+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-7ba1af0ccbe941be8cc54cf3324e7e70","complete":false,"records":13821,"lastAttemptAt":"2026-11-16T09:33:43.4111342+00:00","lastSuccessAt":"2026-11-16T09:33:43.407+00:00","error":"10 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T09:33:43.407+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13864,"expectedIdentifiers":13874,"failedIdentifiers":10},{"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-16T09:30:47.1166095+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T09:30:47.1166095+00:00","lastSuccessAt":"2026-11-16T09:30:47.3020912+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:47.3020915+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-2a27b7b6a1784fa5924b22cef18ec08e","complete":false,"records":13833,"lastAttemptAt":"2026-11-16T09:31:42.1455246+00:00","lastSuccessAt":"2026-11-16T09:31:42.141+00:00","error":"600 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T09:31:42.141+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13274,"expectedIdentifiers":13874,"failedIdentifiers":600},{"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-16T09:30:46.9806842+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:46.9806842+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-16T09:30:46.4963156+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:46.4963156+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-16T09:30:47.0843037+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:47.0843037+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-263d9c8d63997345727b11314d9b9377eba9fd4146f04497c069a15e332b60cb","complete":true,"records":232482,"lastAttemptAt":"2026-11-16T09:30:46.884062+00:00","lastSuccessAt":"2026-11-16T07:32:30.5701252+00:00","error":null,"lastVerifiedAt":"2026-11-16T09:30:46.884062+00:00","snapshotPublishedAt":"2026-11-16T06:48:00+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}