CVE-2021-28035

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 hidden risk lingers in the stack_dst crate for Rust, leading to potential drops of uninitialized memory! Imagine a waiter dropping a tray of food just because they were distracted by a panicking customer — that’s how a simple clone operation can lead to a catastrophic mess with memory. If this vulnerability is triggered, it could lead to unexpected behavior in your application, including crashes or data corruption — a recipe for disaster in any program! Although there’s no known exploitation yet, you definitely don’t want to be the one caught off guard when it happens.

Put simply

Imagine a waiter dropping a tray of food just because they were distracted by a panicking customer — that’s how a simple clone operation can lead to a catastrophic mess with memory. The issue arises from the push_inner behavior in the stack_dst crate, where a panic during a val.clone() operation can result in dropping uninitialized memory, creating potential instability in applications using this crate.

What to do

If this vulnerability is triggered, it could lead to unexpected behavior in your application, including crashes or data corruption — a recipe for disaster in any program! Although there’s no known exploitation yet, you definitely don’t want to be the one caught off guard when it happens. Update your stack_dst crate to version 0.6.1 or later to patch this vulnerability. It's also a good idea to review any related code to ensure proper error handling is implemented, reducing the risk of similar issues in the future. You've got this! Just a quick update, and your code will be safer and more stable. 🛡️

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