HighFix available
rust-xcb — security advisory
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.
- Products
- rust-xcb
- Affected versions
- Not specified
- Fixed versions
- 1.1.1-1
- CVEs
- CVE-2021-26958
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:56 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2021-26958
rust-xcb
Fixed versions: 1.1.1-1
rust-xcb
Fixed versions: 1.1.1-1
rust-xcb
Fixed versions: 1.1.1-1
Complete source record
{
"id": "274f1b6435206c3f21a1d9e217391b42efe89e8691811e8d5413142ef459efba",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-26958",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-26958",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2021-26958",
"products": [
{
"name": {
"value": "rust-xcb",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.1.1-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "rust-xcb",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.1.1-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "rust-xcb",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.1.1-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-26958",
"aliases": [
"DEBIAN-CVE-2021-26958"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.1-1"
}
]
}
],
"package": {
"name": "rust-xcb",
"purl": "pkg:deb/debian/rust-xcb?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-26958.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.1-1"
}
]
}
],
"package": {
"name": "rust-xcb",
"purl": "pkg:deb/debian/rust-xcb?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-26958.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.1-1"
}
]
}
],
"package": {
"name": "rust-xcb",
"purl": "pkg:deb/debian/rust-xcb?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-26958.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:57.147443885Z",
"provider": "osv",
"upstream": [
"CVE-2021-26958"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-26958"
]
},
"related_cves": [
{
"value": "CVE-2021-26958",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 422734,
"published_at": "2021-02-09T23:15:14.383+00:00"
}