CVE-2021-26958
Unchecked Return Value in xcb
Reported by mitre · Published February 9, 2021
xcb is fixed in 1.0.0 (crates.io)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| xcb | crates.io | 1.0.0 |
| xcb | xcb_project | 2021-02-04 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| crates.io | xcb | 0 |
| n/a | n/a | * |
Timeline
- Feb 9, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Jun 17, 2026 CVE Updated
- Aug 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-26958
vulnetix vdb fixes CVE-2021-26958
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-26958/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-26958 advisory
- https://github.com/advisories/GHSA-3cj3-jrrp-9rxf advisory
- https://github.com/RustSec/advisory-db/issues/653 advisory
- https://github.com/rtbo/rust-xcb url