GHSA-3cj3-jrrp-9rxf

Suggest an improvement
Source
https://github.com/advisories/GHSA-3cj3-jrrp-9rxf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-3cj3-jrrp-9rxf/GHSA-3cj3-jrrp-9rxf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3cj3-jrrp-9rxf
Aliases
Published
2021-08-25T20:53:18Z
Modified
2024-03-15T00:05:17.174146Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/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 transmutation to the wrong type can happen after xcb::base::cast_event uses std::mem::transmute to return a reference to an arbitrary type.

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