Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. xcb
  4. ›
  5. CVE-2021-26955

CVE-2021-26955: Unchecked Return Value in xcb

August 25, 2021

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.

References

  • github.com/RustSec/advisory-db/issues/653
  • github.com/advisories/GHSA-3288-cwgw-ch86
  • github.com/rtbo/rust-xcb
  • nvd.nist.gov/vuln/detail/CVE-2021-26955
  • rustsec.org/advisories/RUSTSEC-2021-0019.html

Code Behaviors & Features

Detect and mitigate CVE-2021-26955 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.0

Fixed versions

  • 1.0.0

Solution

Upgrade to version 1.0.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-252: Unchecked Return Value

Source file

cargo/xcb/CVE-2021-26955.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:16 +0000.