CVE-2021-28029
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
toodee (crates.io)before 0.3.0, from 0.0.0-0 before 0.3.0GitHub Advisory Database, RustSec Advisory Database
toodee_project toodeebefore 0.3.0NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2021-28029 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-wcvp-r8j8-47pc changed 2023-11-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-xm9m-2vj8-fmfr changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0028 changed 2023-11-08CC0-1.0
NVDCVE-2021-28029 changed 2026-06-17Public domain