medium
DynFuture Drop Can Construct a Dangling Reference
- Severity
- medium CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2026-0079
Description
DynFuture is unsound because its Drop implementation transmutes a trait-object reference into unrelated reference types, which constructs an invalid reference from trait object metadata.
This issue was reproduced against dyn-future 3.0.4 under Miri. The crate is unmaintained.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| dyn-future (crates.io) | up to 3.0.4, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
Classification
What each source says
GitHub Advisory Database
DynFuture is unsound because its Drop implementation transmutes a trait-object reference into unrelated reference types, which constructs an invalid reference from trait object metadata.
This issue was reproduced against dyn-future 3.0.4 under Miri. The crate is unmaintained.
RustSec Advisory Database
DynFuture is unsound because its Drop implementation transmutes a trait-object reference into unrelated reference types, which constructs an invalid reference from trait object metadata.
This issue was reproduced against dyn-future 3.0.4 under Miri. And the crate is unmaintained.
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-j3w3-p6mr-3hrh changed 2026-04-05 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2026-0079 changed 2026-04-05 | CC0-1.0 |