{"id":"RUSTSEC-2023-0005","revision":"6df997af6ad24f5692dd863baef9ad47","records":[{"revision":"6df997af6ad24f5692dd863baef9ad47","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2023-0005","aliases":["GHSA-4q83-7cq4-p6wg"],"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.","state":0,"publishedAt":"2023-01-11T12:00:00+00:00","modifiedAt":"2023-11-08T04:15:17.465753+00:00","affected":[{"ecosystem":"crates.io","name":"tokio","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.2.0"},{"kind":"fixed","version":"1.18.5"},{"kind":"introduced","version":"1.19.0"},{"kind":"fixed","version":"1.20.4"},{"kind":"introduced","version":"1.21.0"},{"kind":"fixed","version":"1.24.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/tokio","https://rustsec.org/advisories/RUSTSEC-2023-0005.html","https://github.com/tokio-rs/tokio/issues/5372"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2023-0005","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2023-0005","identifiers":["RUSTSEC-2023-0005","GHSA-4q83-7cq4-p6wg"]},"retained":false,"historicalAffected":[]}],"coverage":[]}