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

CVE-2021-26958: 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 transmutation to the wrong type can happen after xcb::base::cast_event uses std::mem::transmute to return a reference to an arbitrary type.

References

  • github.com/RustSec/advisory-db/issues/653
  • github.com/advisories/GHSA-3cj3-jrrp-9rxf
  • github.com/rtbo/rust-xcb
  • nvd.nist.gov/vuln/detail/CVE-2021-26958
  • rustsec.org/advisories/RUSTSEC-2021-0019.html

Code Behaviors & Features

Detect and mitigate CVE-2021-26958 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 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/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-26958.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:16 +0000.