GitHub Advisoryadvisory · crates.io

GHSA-3288-cwgw-ch86 Unchecked Return Value in xcb

CRITICAL Published 2021-08-25 Modified 2021-08-19 Official page ↗
Aliases
CVE-2021-26955
Ecosystem
crates.io
Packages
xcb
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-252
Reviewed
2021-08-19

Affected packages

• crates.io xcb: < 1.0.0 → fixed in 1.0.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2021-26955 An issue was discovered in the xcb crate through 2021-02-04 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-252 Unchecked Return Value weakness

References