CVE-2021-26955
CRITICAL 9.8CVSS 3.1Out of bounds read in xcb
An issue was discovered in the xcb crate through 2021-02-04 for Rust. It has a soundness violation because xcb::xproto::GetAtomNameReply::name() calls std::str::from_utf8_unchecked() on unvalidated bytes from an X server.
- Published
- 9 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-125CWE-252CWE-657
- Also known as
- CVE-2021-26956CVE-2021-26957CVE-2021-26958GHSA-2xpg-3hx4-fm9rGHSA-3288-cwgw-ch86GHSA-3cj3-jrrp-9rxfGHSA-mp6r-fgw2-rxfxRUSTSEC-2021-0019
- Sources
- NVDJSONOSV GHSA-2xpg-3hx4-fm9rJSONOSV GHSA-3288-cwgw-ch86JSONOSV GHSA-3cj3-jrrp-9rxfJSONOSV GHSA-mp6r-fgw2-rxfxJSONOSV RUSTSEC-2021-0019JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | xcb_project | xcbcpe:2.3:a:xcb_project:xcb:*:*:*:*:*:rust:*:* |
<= 2021-02-04 | |
| OSV | crates.io | xcb | < 1.0.0 | 1.0.0 |
| OSV | crates.io | xcb | >= 0.0.0-0, < 1.0.0 | 1.0.0 |
References
- https://rustsec.org/advisories/RUSTSEC-2021-0019.html · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-26957 · ADVISORY
- https://github.com/RustSec/advisory-db/issues/653 · WEB, REPORT
- https://github.com/rtbo/rust-xcb · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-26955 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-26958 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-26956 · ADVISORY
- https://github.com/rust-x-bindings/rust-xcb/issues/95 · WEB, REPORT
- https://crates.io/crates/xcb · PACKAGE
- https://github.com/rust-x-bindings/rust-xcb/issues/78 · REPORT
- https://github.com/rust-x-bindings/rust-xcb/issues/94 · REPORT
- https://github.com/rust-x-bindings/rust-xcb/issues/96 · REPORT
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 9 Feb 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Feb 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)