CVE-2021-28034

An issue was discovered in the stack_dst crate before 0.6.1 for Rust

published March 5, 2021

CVSS
โ€”
EPSS
1%
Percentile
70.1
In the wild
Unconfirmed
What it is

โš ๏ธ A double free can happen during a panic with the stack_dst crate before version 0.6.1 โ€” think of it as trying to serve the same dish twice at a banquet! ๐Ÿฝ๏ธ Picture a bustling restaurant kitchen where a chef accidentally attempts to prepare the same meal twice without realizing it โ€” chaos ensues as they juggle pots and pans, potentially burning the dish or wasting ingredients. This double free vulnerability means that when a panic occurs during the cloning of a value, it can lead to unexpected behavior and memory issues. If exploited, this flaw could lead to instability in your application, causing it to crash or behave unpredictably. While the severity is classified as unknown, any malfunction could put user data at risk, leading to potentially devastating consequences for your app's functionality.

Put simply

Picture a bustling restaurant kitchen where a chef accidentally attempts to prepare the same meal twice without realizing it โ€” chaos ensues as they juggle pots and pans, potentially burning the dish or wasting ingredients. This double free vulnerability means that when a panic occurs during the cloning of a value, it can lead to unexpected behavior and memory issues. This vulnerability in the stack_dst crate stems from the push_inner function, which can result in double freeing memory when a panic occurs during a val.clone() operation, creating instability in your Rust application.

What to do

If exploited, this flaw could lead to instability in your application, causing it to crash or behave unpredictably. While the severity is classified as unknown, any malfunction could put user data at risk, leading to potentially devastating consequences for your app's functionality. To address this vulnerability, you should upgrade your stack_dst crate to version 0.6.1 or later immediately. Regularly audit your dependencies to ensure you are using the latest and secure versions to prevent future issues. You've got this! With these steps, you can keep your application safe and sound. ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01295 ยท 70.1th percentile
Published
2021-03-05T08:39Z
EPSS history
Timeline
  • 05 MAR 08:39Z
    An issue was discovered in the stack_dst crate before 0.6.1 for Rust
    cvelistv5