GHSA-j3w3-p6mr-3hrh: Dyn future DynFuture Drop Can Construct A Vulnerability

MODERATE
CWE-843
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-j3w3-p6mr-3hrh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
Affected Product Dyn future
Package Ecosystem crates.io
Published Date
Last Updated

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.

dyn-future fixed: Latest secure release
Upgrade dyn-future to Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
GHSA-j3w3-p6mr-3hrh is a security vulnerability in Dyn future involving DynFuture Drop Can Construct a Dangling Reference under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion').
Which Dyn future versions are affected?
Affected versions include releases prior to current release patches across affected packages: dyn-future.
What version fixes GHSA-j3w3-p6mr-3hrh?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is dyn-future affected?
Yes, dyn-future is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-j3w3-p6mr-3hrh?
GHSA-j3w3-p6mr-3hrh is classified under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') (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.).
How can I check crates.io dependencies for GHSA-j3w3-p6mr-3hrh?
Run the dependency tree command: 'inspect dependencies for dyn-future'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}