{"id":"GHSA-9c9f-7x9p-4wqp","aliases":["GHSA-9c9f-7x9p-4wqp","RUSTSEC-2022-0007"],"related":[],"kind":"vulnerability","state":"published","title":"A malicious coder can get unsound access to TCell or TLCell memory","summary":"This is impossible to do by accident, but by carefully constructing\nmarker types to be covariant, a malicious coder can cheat the\nsingleton check in `TCellOwner` and `TLCellOwner`, giving unsound\naccess to cell memory.  This could take the form of getting two\nmutable references to the same memory, or a mutable reference and an\nimmutable reference.\n\nThe fix is for the crate to internally force the marker type to be\ninvariant.  This blocks the conversion between covariant types which\nRust normally allows.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"This is impossible to do by accident, but by carefully constructing\nmarker types to be covariant, a malicious coder can cheat the\nsingleton check in `TCellOwner` and `TLCellOwner`, giving unsound\naccess to cell memory.  This could take the form of getting two\nmutable references to the same memory, or a mutable reference and an\nimmutable reference.\n\nThe fix is for the crate to internally force the marker type to be\ninvariant.  This blocks the conversion between covariant types which\nRust normally allows.","format":"markdown","source":"ghsa"}],"published":"2022-01-24T12:00:00.000Z","modified":"2023-11-08T04:17:51.156Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.3"}],"ecosystem":"crates.io","package":"qcell","purl":"pkg:cargo/qcell","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.4.3"}],"ecosystem":"crates.io","package":"qcell","purl":"pkg:cargo/qcell","source":"rustsec"}],"references":[{"url":"https://github.com/uazu/qcell/issues/20","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/uazu/qcell","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0007.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/qcell","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9c9f-7x9p-4wqp","url":"https://github.com/advisories/GHSA-9c9f-7x9p-4wqp","licence":"CC-BY-4.0","modified":"2023-11-08T04:17:51.156Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0007","url":"https://rustsec.org/advisories/RUSTSEC-2022-0007.html","licence":"CC0-1.0","modified":"2023-11-08T04:17:51.156Z"}],"updatedAt":"2026-11-25T22:56:43.090Z"}