Security mailing lists by PureSourceCode

CVE-2021-26958

HIGH 8.8CVSS 3.1

Out of bounds read in xcb

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.

Published
9 Feb 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-125CWE-252CWE-657
Also known as
CVE-2021-26955CVE-2021-26956CVE-2021-26957GHSA-2xpg-3hx4-fm9rGHSA-3288-cwgw-ch86GHSA-3cj3-jrrp-9rxfGHSA-mp6r-fgw2-rxfxRUSTSEC-2021-0019
Sources
NVDJSONOSV GHSA-2xpg-3hx4-fm9rJSONOSV GHSA-3288-cwgw-ch86JSONOSV GHSA-3cj3-jrrp-9rxfJSONOSV GHSA-mp6r-fgw2-rxfxJSONOSV RUSTSEC-2021-0019JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.5 AV:N/AC:L/Au:S/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD xcb_project xcb
cpe:2.3:a:xcb_project:xcb:*:*:*:*:*:rust:*:*
<= 2021-02-04
OSV crates.io xcb < 1.0.0 1.0.0
OSV crates.io xcb >= 0.0.0-0, < 1.0.0 1.0.0

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 9 Feb 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Feb 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.