SEVERITY NOT PROVIDED

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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
Multiple functions dropped generic parameters but didn't properly handle the unwinding case, leading to broken invariants. Reported by [tooson9010-spec](https://github.com/tooson9010-spec) and [Evian-Zhang](https://github.com/Evian-Zhang).

References

Source records: RUSTSEC-2026-0577 (OSV.dev).