CVE-2021-26958: xcb Rust Crate - Undefined Behavior
- Cve: CVE-2021-26958
- Name: xcb Rust Crate - Undefined Behavior
- Description: 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.
- Impact: Potential for undefined behavior, crashes, or memory corruption in applications using the crate.
- Remediation: Update to the latest version of the xcb crate where the issue is fixed.
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01619
- Epss percentile: 0.76568
- Assignee: [email protected]
- Published at: 2021-02-09T23:15:14Z
- Age in days: 2114
- Modified at: 2026-06-17T03:44:04Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-26958
- Nvd status: modified
- Checked, none or zero: vulnerability impact, patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-252 | Unchecked Return Value |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://rustsec.org/advisories/RUSTSEC-2021-0019.html | nvd | 2021-02-09 |
References
| Url | Source | Tags |
|---|---|---|
| https://rustsec.org/advisories/RUSTSEC-2021-0019.html | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| xcb_project:xcb | <= 2021-02-04 | no | nvd | /v1/products/xcb_project/xcb |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rustsec/advisory-db | issues | yes | /v1/repositories/rustsec/advisory-db |
| rtbo/rust-xcb | package | yes | /v1/repositories/rtbo/rust-xcb |
Index
- Repositories: 5
- Repositories high signal: 4
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-02-09
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts