{"id":"UBUNTU-CVE-2021-26958","details":"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.","modified":"2025-09-08T16:47:02Z","published":"2021-02-09T23:15:00Z","upstream":["CVE-2021-26958"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-26958"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2021-0019.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-26958"}],"affected":[{"package":{"name":"rust-xcb","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/rust-xcb@0.9.0-2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-xcb+debug-all-dev","binary_version":"0.9.0-2"},{"binary_name":"librust-xcb+present-dev","binary_version":"0.9.0-2"},{"binary_name":"librust-xcb+x11-dev","binary_version":"0.9.0-2"},{"binary_name":"librust-xcb+xfixes-dev","binary_version":"0.9.0-2"},{"binary_name":"librust-xcb+xlib-xcb-dev","binary_version":"0.9.0-2"},{"binary_name":"librust-xcb-dev","binary_version":"0.9.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-26958.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}