GHSA-j3w3-p6mr-3hrh: Dyn future DynFuture Drop Can Construct A Vulnerability
MODERATEGHSA-j3w3-p6mr-3hrh is a MODERATE dynfuture drop can construct a vulnerability (CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')) affecting Dyn future libraries in the crates.io ecosystem. The issue involves dynfuture drop can construct a dangling reference. Remediation is available in the latest vendor maintenance releases.
GHSA-j3w3-p6mr-3hrh at a Glance
How to Fix GHSA-j3w3-p6mr-3hrh
To remediate this vulnerability, upgrade all affected Dyn future dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade dyn-future to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for dyn-future
How to Check if You Are Affected
To determine whether your application is affected by GHSA-j3w3-p6mr-3hrh, inspect your project dependencies for Dyn future:
inspect dependencies for dyn-future
Analyze the terminal output to locate any version of Dyn future in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion'), where the product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type. In Dyn future, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-j3w3-p6mr-3hrh Affected Dyn future Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dyn-future
|
crates.io |
≤ 3.0.4
|
|
References
Frequently Asked Questions
What is GHSA-j3w3-p6mr-3hrh?
Which Dyn future versions are affected?
What version fixes GHSA-j3w3-p6mr-3hrh?
Is dyn-future affected?
What CWE is associated with GHSA-j3w3-p6mr-3hrh?
How can I check crates.io dependencies for GHSA-j3w3-p6mr-3hrh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j3w3-p6mr-3hrh",
"modified" : "2026-04-04T05:55:51Z",
"published" : "2026-04-04T05:55:51Z",
"aliases" : [ ],
"summary" : "DynFuture Drop Can Construct a Dangling Reference",
"details" : "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.\n\nThis issue was reproduced against `dyn-future` 3.0.4 under Miri. The crate is unmaintained.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "dyn-future"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.0.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rustsec/advisory-db/issues/2595"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xacrimon/dyn-future"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2026-0079.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-843" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-04T05:55:51Z",
"nvd_published_at" : null
}
}