Advisory

GHSA-mp6r-fgw2-rxfx

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

Summary

Arbitrary return types in xcb

Details

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

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