{"id":"GHSA-4q83-7cq4-p6wg","revision":"06ebfbc1d0da49ef8f9d120ceb71e8f1","records":[{"revision":"06ebfbc1d0da49ef8f9d120ceb71e8f1","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-4q83-7cq4-p6wg","aliases":["RUSTSEC-2023-0005"],"title":"`tokio::io::ReadHalf<T>::unsplit` is Unsound","description":"`tokio::io::ReadHalf<T>::unsplit` can violate the `Pin` contract\n\nThe soundness issue is described in the [tokio/issues#5372](https://github.com/tokio-rs/tokio/issues/5372)\n\nSpecific set of conditions needed to trigger an issue (a !Unpin type in ReadHalf)\nis unusual, combined with the difficulty of making any arbitrary use-after-free\nexploitable in Rust without doing a lot of careful alignment of data types in\nthe surrounding code.\n\nThe `tokio` feature `io-util` is also required to be enabled to trigger this\nsoundness issue.\n\nThanks to zachs18 reporting the issue to Tokio team responsibly and taiki-e\nand carllerche appropriately responding and fixing the soundness bug.\n\nTokio before 0.2.0 used `futures` 0.1 that did not have `Pin`, so it is not\naffected by this issue.\n","state":0,"publishedAt":"2023-02-04T00:30:37+00:00","modifiedAt":"2026-09-10T03:49:56.5885812+00:00","affected":[{"ecosystem":"crates.io","name":"tokio","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.21.0"},{"kind":"fixed","version":"1.24.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"tokio","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.19.0"},{"kind":"fixed","version":"1.20.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"tokio","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.2.0"},{"kind":"fixed","version":"1.18.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/tokio-rs/tokio/issues/5372","https://github.com/tokio-rs/tokio","https://rustsec.org/advisories/RUSTSEC-2023-0005.html"],"sourceUrl":"https://github.com/advisories/GHSA-4q83-7cq4-p6wg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4q83-7cq4-p6wg","identifiers":["GHSA-4q83-7cq4-p6wg","RUSTSEC-2023-0005"]},"retained":false,"historicalAffected":[]}],"coverage":[]}