# GHSA-j3w3-p6mr-3hrh: `DynFuture` drop can construct a dangling reference

> Unsound Drop implementation in DynFuture creates dangling references, potentially leading to memory corruption or crashes in Rust applications.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Not stated
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 21 Jan 2026
- **Also known as:** RUSTSEC-2026-0079

## What is GHSA-j3w3-p6mr-3hrh?

GHSA-j3w3-p6mr-3hrh is a memory corruption vulnerability in dyn-future, published on 21 Jan 2026. 

### Official 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. And the crate is unmaintained.

## Which versions are affected by GHSA-j3w3-p6mr-3hrh?

3 open source packages ship an affected version, including dyn-future.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `dyn-future` | crates.io | All versions to 3.0.4 | None |
| `dyn-future` | crates.io | All versions to 3.0.4 | None |
| `dyn-future` | crates.io | From 0.0.0-0 | None |

## How do I fix GHSA-j3w3-p6mr-3hrh?

No fix has been published for GHSA-j3w3-p6mr-3hrh yet. Limit exposure of the affected software until one is available.

## Is GHSA-j3w3-p6mr-3hrh being exploited?

There is no known exploitation of GHSA-j3w3-p6mr-3hrh in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-j3w3-p6mr-3hrh and fix it if it is affected.

What it is: GHSA-j3w3-p6mr-3hrh is a memory corruption vulnerability in dyn-future, published on 21 Jan 2026. 
Exploitation: There is no known exploitation of GHSA-j3w3-p6mr-3hrh in the wild and no public exploit code.

Affected packages and fixed versions:
- dyn-future (crates.io): affected all versions up to 3.0.4; no fix listed
- dyn-future (crates.io): affected all versions up to 3.0.4; no fix listed
- dyn-future (crates.io): affected from 0.0.0-0; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-j3w3-p6mr-3hrh/ (Markdown: https://insights.sbomify.com/GHSA-j3w3-p6mr-3hrh/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-j3w3-p6mr-3hrh

---
From sbomify Insights: https://insights.sbomify.com/GHSA-j3w3-p6mr-3hrh/
Summaries are generated and may contain mistakes; the official description above is the record.
