Critical
Security advisory
An issue was discovered in Deserializer::read_vec in the cdr crate before 0.2.4 for Rust. A user-provided Read implementation can gain access to the old contents of newly allocated heap memory, violating soundness.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-26305
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:39 UTC · Revision 1
Source evidence
An issue was discovered in Deserializer::read_vec in the cdr crate before 0.2.4 for Rust. A user-provided Read implementation can gain access to the old contents of newly allocated heap memory, violating soundness.
osv:CVE-2021-26305
Complete source record
{
"id": "920362a33048579b93c41f19af0e95f5a4fbdf48ea6b327a4697c4ed0ae9fc07",
"url": "https://osv.dev/vulnerability/CVE-2021-26305",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-26305",
"summary": "An issue was discovered in Deserializer::read_vec in the cdr crate before 0.2.4 for Rust. A user-provided Read implementation can gain access to the old contents of newly allocated heap memory, violating soundness.",
"evidence": "osv:CVE-2021-26305",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-26305",
"aliases": [
"CVE-2021-26305",
"GHSA-37jj-wp7g-7wj4",
"RUSTSEC-2021-0012"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/hrektts/cdr-rs",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b143a8ba034b73637db078eec942e4c63bd52fc3"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:cdr_project:cdr:*:*:*:*:*:rust:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.2.4"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.2.3",
"v0.2.2",
"v0.2.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-26305.json"
}
}
],
"modified": "2026-10-24T10:30:42.574506885Z",
"provider": "osv",
"references": [
"https://rustsec.org/advisories/RUSTSEC-2021-0012.html"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-26305",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 435413,
"published_at": "2021-01-29T03:15:12.363+00:00"
}