# CVE-2021-26955: Out of bounds read in xcb

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.75%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-04T12:00:00.000Z
- Modified: 2026-06-17T03:44:04.277Z
- Also known as: GHSA-2xpg-3hx4-fm9r, GHSA-3288-cwgw-ch86, GHSA-3cj3-jrrp-9rxf, GHSA-mp6r-fgw2-rxfx, RUSTSEC-2021-0019
- Related: CVE-2021-26956, CVE-2021-26957, CVE-2021-26958
- Weaknesses: CWE-125, CWE-252, CWE-657
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- xcb (crates.io): before 1.0.0; from 0.0.0-0 before 1.0.0
- xcb_project xcb: up to 2021-02-04

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0019.html> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-26957> (advisory)
- <https://github.com/RustSec/advisory-db/issues/653> (report, web)
- <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> (report, web)
- <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)

## Sources

- CVE List: [CVE-2021-26955](https://www.cve.org/CVERecord?id=CVE-2021-26955), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-2xpg-3hx4-fm9r](https://github.com/advisories/GHSA-2xpg-3hx4-fm9r), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-3288-cwgw-ch86](https://github.com/advisories/GHSA-3288-cwgw-ch86), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-3cj3-jrrp-9rxf](https://github.com/advisories/GHSA-3cj3-jrrp-9rxf), CC-BY-4.0, modified 2024-03-15
- GitHub Advisory Database: [GHSA-mp6r-fgw2-rxfx](https://github.com/advisories/GHSA-mp6r-fgw2-rxfx), CC-BY-4.0, modified 2024-03-15
- RustSec Advisory Database: [RUSTSEC-2021-0019](https://rustsec.org/advisories/RUSTSEC-2021-0019.html), CC0-1.0, modified 2024-03-15
- NVD: [CVE-2021-26955](https://nvd.nist.gov/vuln/detail/CVE-2021-26955), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-26955 · Whole record: https://cve.day/CVE-2021-26955.json · Rebuilt by cve.day 2026-11-25T22:57:59.875Z
