cve.bz

CVE-2021-26955 xcb project xcb: Unchecked Return Value

9.8 criticalExploit referenceEPSS 1.7%Fix available

Critical (9.8) in xcb project xcb. EPSS 1.7% estimated probability of exploitation activity in the next 30 days. Fixed in xcb 1.0.0.

On this page
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.

Severity

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
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-252 Unchecked Return Value
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-26955 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-26955?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-26955?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-26955 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xcb_project:xcbthrough 2021-02-04

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2xpg-3hx4-fm9rcrates.ioxcb<1.0.01.0.0
GHSA-3288-cwgw-ch86crates.ioxcb<1.0.01.0.0
GHSA-3cj3-jrrp-9rxfcrates.ioxcb<1.0.01.0.0
GHSA-mp6r-fgw2-rxfxcrates.ioxcb<1.0.01.0.0
RUSTSEC-2021-0019crates.ioxcb>=0.0.0-0 <1.0.01.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rust-xcb1.1.1-1DEBIAN-CVE-2021-26955
Ubuntu22.04:LTSrust-xcbno fix listedUBUNTU-CVE-2021-26955

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

References

Check your stackJSON