Email me

Rust advisories / unicycle

VulnerabilityRUSTSEC-2026-0298 · unicycle

RUSTSEC-2026-0298: Use-after-free when a future's `Drop` panics while the container is dropped

Short answerA security vulnerability in the unicycle crate: Use-after-free when a future's `Drop` panics while the container is dropped. No severity score was published. Fixed in 0.10.3: update to a fixed version.

Crateunicycle
TypeVulnerability (memory-corruption)
Affected versionsBefore 0.10.3.
Fixed in0.10.3
Severitynot scored
Published2026-09-12
Last changed2026-09-22
Also known asGHSA-8gw6-724c-9h38
Affected functionsunicycle::Unordered::drop

What to do

  1. See which version you have: cargo tree -i unicycle (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p unicycle. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example unicycle = "0.10.3") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Storage::clear walks the slab, empties each entry and frees the Task allocation once its reference count reaches zero. self.tasks.set_len(0) only runs after the loop.

Emptying an entry drops the user future it holds, and T carries no bounds excluding a panicking Drop. If one unwinds, the length is never committed and self.tasks still holds the pointers already processed. Drop for Storage calls clear again, and the second pass dereferences (*task.as_ptr()).entry on allocations the first pass already freed , a use-after-free (CWE-416) reachable from safe Rust.

Storage is reached only through Unordered, whose Drop calls clear. No particular method call is needed; dropping the container is enough.

Mitigation

Update to 0.10.3.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for unicycle

Full security history of unicycle

Up next

Same crateunicycle: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ