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

CVE-2021-26957: Out of bounds read 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 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.

References

  • github.com/RustSec/advisory-db/issues/653
  • github.com/advisories/GHSA-2xpg-3hx4-fm9r
  • github.com/rtbo/rust-xcb
  • nvd.nist.gov/vuln/detail/CVE-2021-26957
  • rustsec.org/advisories/RUSTSEC-2021-0019.html

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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-125: Out-of-bounds Read

Source file

cargo/xcb/CVE-2021-26957.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:23 +0000.