DynFuture Drop Can Construct a Dangling Reference
Moderate severity
GitHub Reviewed
Published
Apr 4, 2026
to the GitHub Advisory Database
•
Updated Apr 4, 2026
Description
Published to the GitHub Advisory Database
Apr 4, 2026
Reviewed
Apr 4, 2026
Last updated
Apr 4, 2026
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-future3.0.4 under Miri. The crate is unmaintained.References