Advisory

GHSA-3288-cwgw-ch86

Also known as: CVE-2021-26955, CVE-2021-26956, CVE-2021-26957, CVE-2021-26958, GHSA-2xpg-3hx4-fm9r, GHSA-3cj3-jrrp-9rxf, GHSA-mp6r-fgw2-rxfx, RUSTSEC-2021-0019

Summary

Unchecked Return Value in xcb

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:53 UTC
Modified
2024-03-15 00:05 UTC

Affected packages and fixes

xcb

crates.io · All systems

Affected

  • introduced 0, fixed 1.0.0 (semver)

Fixed versions

1.0.0

Fix

  • Fixed version 1.0.0
    cargo update -p xcb --precise 1.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences