{"id":"CVE-2021-26958","published":"2021-02-09T22:07:10Z","modified":"2024-08-03T20:33:41Z","title":"An issue was discovered in the xcb crate through 2021-02-04 for Rust","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue was discovered in the xcb crate through 2021-02-04 for Rust. It has a soundness violation because transmutation to the wrong type can happen after xcb::base::cast_event uses std::mem::transmute to return a reference to an arbitrary type.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01619,"percentile":0.76658,"provenance":"source"},"cwes":[],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0019.html","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":15.33}]},"affected":[{"ecosystem":"crates.io","package":"xcb","vulnerableRanges":["<1.0.0",">=0.0.0-0, <1.0.0"],"patched":["1.0.0"],"from":["GHSA-3cj3-jrrp-9rxf","RUSTSEC-2021-0019"],"provenance":"source"}],"summary":{"text":"The xcb crate for Rust contains a soundness flaw in its xcb::base::cast_event function, which uses std::mem::transmute to return a reference to an arbitrary type, allowing transmutation to the wrong type. An attacker can trigger this by supplying or causing use of an event of an unexpected type.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:23Z"},"euvd":{"id":"EUVD-2021-1543","exploited":false,"provenance":"source"}}