RUSTSEC-2026-0579: The `Deque` implementation from `TryFrom` was wrong when the `Deque` ended up full
Published 2026-11-18 · Updated 2026-11-19
Summary
The heapless Deque TryFrom implementation can enter an invalid state when the input array length equals the Deque capacity. Teams using affected heapless versions should review Deque::try_from usage and upgrade.
Who is affected
Affected deployments are those using crates.io heapless with the Deque::try_from conversion on versions introduced in 0.0.0-0 and before the fix in 0.9.4. The flaw is triggered when the array passed to Deque::try_from is as long as the Deque capacity. The record does not document further conditions or downstream effects.
Exploitability
The record provides no CVSS vector and no base score. EPSS is not yet available. CISA KEV is marked no, so active exploitation is not claimed.
Remediation
- Upgrade crates.io heapless to fixed version 0.9.4.
- Review code paths that call Deque::try_from with arrays whose length can equal the Deque capacity.
How to check your project
- Inspect project dependency files or lockfiles for crates.io heapless versions from 0.0.0-0 through versions before 0.9.4.
- Search source code for Deque::try_from usage to identify potentially affected conversions.
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
Which versions are affected?
The record lists crates.io heapless as introduced in 0.0.0-0 and fixed in 0.9.4.
Is active exploitation known?
No; CISA Known Exploited Vulnerabilities is marked no.
What is the fix?
Use the fixed version 0.9.4.
Original advisory description
References
- PACKAGE https://crates.io/crates/heapless
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0579.html
- WEB https://github.com/rust-embedded/heapless/pull/702
Source records: RUSTSEC-2026-0579 (OSV.dev).