PT-2021-17717 · Toodee · Toodee
Published
2021-02-19
·
Updated
2022-07-12
·
CVE-2021-28029
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
toodee versions prior to 0.3.0
Description:
The issue allows attackers to read the contents of uninitialized memory locations due to a problem in the row-insertion feature. 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.Recommendations:
For versions prior to 0.3.0, update to version 0.3.0 or later to resolve the issue. As a temporary workaround, consider implementing custom checks to ensure the
len() returned by the ExactSizeIterator matches the number of elements to minimize the risk of exploitation. Restrict access to the row-insertion feature until the issue is resolved.Fix
Use of Uninitialized Resource
Double Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Toodee