CVE-2021-26957Xcb Project Xcb
Critical 9.8 No auth needed
Follow: this CVE · Xcb Project · Xcb Project Xcb We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- Feb 9, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
An issue was discovered in the xcb crate through 2021-02-04 for Rust. It has a soundness violation because there is an out-of-bounds read in xcb::xproto::change_property(), as demonstrated by a format=32 T=u8 situation where out-of-bounds bytes are sent to an X server.
What to do
- Apply the vendor's security update for Xcb.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | xcb |
< 1.0.0 |
1.0.0 |
cargo update -p xcb --precise 1.0.0 |
| crates.io | xcb |
< 1.0.0 |
1.0.0 |
cargo update -p xcb --precise 1.0.0 |
| crates.io | xcb |
< 1.0.0 |
1.0.0 |
cargo update -p xcb --precise 1.0.0 |
| crates.io | xcb |
< 1.0.0 |
1.0.0 |
cargo update -p xcb --precise 1.0.0 |
| crates.io | xcb |
≥ 0.0.0-0 < 1.0.0 |
1.0.0 |
cargo update -p xcb --precise 1.0.0 |
Per OSV / GitHub Advisories (GHSA-2xpg-3hx4-fm9r, GHSA-3288-cwgw-ch86, GHSA-3cj3-jrrp-9rxf, GHSA-mp6r-fgw2-rxfx, RUSTSEC-2021-0019). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| xcb_project | xcb | ≤ 2021-02-04 |
Official sources
References
Links published by the sources. Open them with care.
- rustsec.org Exploit Vendor Advisory