Live threats

All CVEs / Xcb Project

CVE-2021-26958Xcb Project Xcb

High 8.8

Priority
53
CVSS 3.1
8.8
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
Yes
Published
Feb 9, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-252
Vector
CVSS:3.1/AV:N/AC:L/PR:L/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 transmutation to the wrong type can happen after xcb::base::cast_event uses std::mem::transmute to return a reference to an arbitrary type.

Original NVD text.

What to do

  1. Apply the vendor's security update for Xcb.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
xcb_projectxcb≤ 2021-02-04

Official sources

References

Links published by the sources. Open them with care.