GHSA-mp6r-fgw2-rxfx

Suggest an improvement
Source
https://github.com/advisories/GHSA-mp6r-fgw2-rxfx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-mp6r-fgw2-rxfx/GHSA-mp6r-fgw2-rxfx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mp6r-fgw2-rxfx
Aliases
Published
2021-08-25T20:53:27Z
Modified
2024-03-15T00:05:17.174146Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-657"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T17:35:46Z"
}
References

Affected packages

crates.io / xcb

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.0

Ecosystem specific

{
    "affected_functions": [
        "xcb::xproto::GetPropertyReply::value"
    ]
}