7.5high
Double free in toodee
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.19% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-wcvp-r8j8-47pcGHSA-xm9m-2vj8-fmfrRUSTSEC-2021-0028
Description
An issue was discovered in the toodee crate before 0.3.0 for Rust. The row-insertion feature allows attackers to read the contents of uninitialized memory locations.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| toodee (crates.io) | before 0.3.0, from 0.0.0-0 before 0.3.0 | GitHub Advisory Database, RustSec Advisory Database |
| toodee_project toodee | before 0.3.0 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
An issue was discovered in the toodee crate before 0.3.0 for Rust. The row-insertion feature allows attackers to read the contents of uninitialized memory locations.
GitHub Advisory Database
When inserting rows from an iterator at a particular index, toodee would shift items over, duplicating their ownership. The space reserved for the new elements was based on the len() returned by the ExactSizeIterator.
This could result in elements in the array being freed twice if the iterator panics. Uninitialized or previously freed elements could also be exposed if the len() didn't match the number of elements.
These issues were fixed in commit ced70c17 by temporarily setting the length of the array smaller while processing it and adding assertions on the number of elements returned by the iterator.
RustSec Advisory Database
When inserting rows from an iterator at a particular index, toodee would shift
items over, duplicating their ownership. The space reserved for the new elements
was based on the len() returned by the ExactSizeIterator.
This could result in elements in the array being freed twice if the iterator
panics. Uninitialized or previously freed elements could also be exposed if the
len() didn't match the number of elements.
These issues were fixed in commit ced70c17 by temporarily setting the length
of the array smaller while processing it and adding assertions on the number
of elements returned by the iterator.
NVD (es)
Se detectó un problema en la crate toodee versiones anteriores a 0.3.0 para Rust. La funcionalidad row-insertion permite a atacantes leer el contenido de ubicaciones de memoria no inicializadas
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-28029 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wcvp-r8j8-47pc changed 2023-11-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-xm9m-2vj8-fmfr changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0028 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-28029 changed 2026-06-17 | Public domain |