logo

CVE-2021-28028 toodee

Package

Manager: cargo
Name: toodee
Vulnerable Version: >=0 <0.3.0

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00418 pctl0.61024

Details

Double free in toodee 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.

Metadata

Created: 2021-09-01T18:30:35Z
Modified: 2023-06-13T21:58:19Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-wcvp-r8j8-47pc/GHSA-wcvp-r8j8-47pc.json
CWE IDs: ["CWE-415"]
Alternative ID: GHSA-wcvp-r8j8-47pc
Finding: F138
Auto approve: 1