RUSTSEC-2026-0577: Panicking `Drop` implementation could lead to UB
Published 2026-11-18 · Updated 2026-11-19
Summary
A panicking Drop implementation in the heapless crate can lead to undefined behavior due to broken invariants. Users of affected heapless versions should update their dependencies.
Who is affected
Deployments using the heapless crate version 0.0.0-0 up to 0.9.3 are affected. The issue occurs when multiple functions drop generic parameters and fail to properly handle unwinding cases.
Exploitability
Exploitability is not documented as no CVSS vector or EPSS score is provided. There is no evidence of active exploitation according to CISA KEV.
Remediation
- Update the heapless crate to version 0.9.4 or later.
How to check your project
- Check the project's Cargo.lock file for heapless versions between 0.0.0-0 and 0.9.3.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | heapless |
>= 0.0.0-0, < 0.9.4 | 0.9.4 | cargo update -p heapless --precise 0.9.4 |
FAQ
What is the root cause of this vulnerability?
The flaw is caused by functions dropping generic parameters without properly handling the unwinding case, which leads to broken invariants.
What is the potential outcome of this flaw?
A panicking Drop implementation could lead to undefined behavior (UB).
Which versions of heapless are fixed?
The vulnerability is fixed in version 0.9.4.
Original advisory description
References
- PACKAGE https://crates.io/crates/heapless
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0577.html
- REPORT https://github.com/rust-embedded/heapless/issues/659
- REPORT https://github.com/rust-embedded/heapless/issues/688
Source records: RUSTSEC-2026-0577 (OSV.dev).