CVE-2021-26305 json
Read of uninitialized memory in cdr
published 2021-01-02 5 y ago modified 2026-06-17 4 mo ago also GHSA-37jj-wp7g-7wj4 , RUSTSEC-2021-0012 , EUVD-2021-1535
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
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.
Patch / fix
- crates.io cdr 0.2.4
- cdr_project cdr 0.2.4
- github.com/hrektts/cdr-rs@0e6006d commit
- github.com/hrektts/cdr-rs#11 pull request
Exploit prediction
1.71% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2021-0012.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | cdr | <0.2.4 >=0.0.0-0, <0.2.4 |
0.2.4 |
Classification
- Weakness
-
- CWE-908 Use of Uninitialized Resource
References
-
github.com
/hrektts/cdr-rs/pull/11
web
-
github.com
/hrektts/cdr-rs/commit/0e6006de464caa331643f86cd2d9ba3b32b09833
web
-
rustsec.org
/advisories/RUSTSEC-2021-0012.html
web, exploit, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-26305
advisory
-
github.com
/hrektts/cdr-rs/issues/10
web, report
-
github.com
/hrektts/cdr-rs
package
-
crates.io
/crates/cdr
package
Sources
- CVE List CVE-2021-26305
- GitHub Advisory GHSA-37jj-wp7g-7wj4
- NVD CVE-2021-26305
- OSV RUSTSEC-2021-0012
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.