All reports
Critical

Arbitrary return types in xcb

Affected versions

Rust / Cargoxcb
Affected versions
< 1.0.0
Fixed version
1.0.0

Exploitation

CVE-2021-26956

Probability of exploitation in the next 30 days: 1.75%

FIRST EPSS · 2026-11-22

Description

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

Links