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

CVE-2021-26956: Arbitrary return types in xcb

August 25, 2021 (updated June 13, 2023)

The function xcb::xproto::GetPropertyReply::value() returns a slice of type T where T is an unconstrained type parameter. The raw bytes received from the X11 server are interpreted as the requested type. The users of the xcb crate are advised to only call this function with the intended types. These are u8, u16, and u32.

This issue is tracked here: https://github.com/rust-x-bindings/rust-xcb/issues/95

References

  • github.com/RustSec/advisory-db/issues/653
  • github.com/advisories/GHSA-mp6r-fgw2-rxfx
  • github.com/rtbo/rust-xcb
  • github.com/rust-x-bindings/rust-xcb/issues/95
  • nvd.nist.gov/vuln/detail/CVE-2021-26956
  • rustsec.org/advisories/RUSTSEC-2021-0019.html

Code Behaviors & Features

Detect and mitigate CVE-2021-26956 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-657: Violation of Secure Design Principles

Source file

cargo/xcb/CVE-2021-26956.yml

Spotted a mistake? Edit the file on GitLab.

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

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