PT-2021-17723

CVE-2021-28035

·

Published

2021-02-22

·

Updated

2022-07-12

Description by

CVSS 3.1
9.8
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: stack dst versions prior to 0.6.1
Description: An issue was discovered in the stack dst crate for Rust. The push inner function increases the internal length of the array and then calls val.clone(). If the val.clone() call panics, the stack could drop an already dropped element or drop uninitialized memory.
Recommendations: For versions prior to 0.6.1, update to version 0.6.1 or later to resolve the issue. As a temporary workaround, consider modifying the push inner function to increase the length of the array after elements are cloned, similar to the fix implemented in 2a4d538.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-45W7-7G63-2M5W
GHSA-8MJX-H23H-W2PG
RUSTSEC-2021-0033
Found an issue in the description? Have something to add? Feel free to write us 👾