GHSA-3288-cwgw-ch86

Suggest an improvement
Source
https://github.com/advisories/GHSA-3288-cwgw-ch86
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-3288-cwgw-ch86/GHSA-3288-cwgw-ch86.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3288-cwgw-ch86
Aliases
Published
2021-08-25T20:53:22Z
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
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::fromutf8unchecked() on unvalidated bytes from an X server.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-252"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T17:44:05Z"
}
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::GetAtomNameReply::name"
    ]
}