Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. futures-task
  4. ›
  5. CVE-2020-35906

CVE-2020-35906: futures_task::waker may cause a use-after-free if used on a type that isn't 'static

May 24, 2022 (updated June 13, 2023)

Affected versions of the crate did not properly implement a ‘static lifetime bound on the waker function. This resulted in a use-after-free if Waker::wake() is called after original data had been dropped.

The flaw was corrected by adding ‘static lifetime bound to the data waker takes.

References

  • github.com/advisories/GHSA-r93v-9p5q-vhpf
  • github.com/rust-lang/futures-rs
  • github.com/rust-lang/futures-rs/pull/2206
  • nvd.nist.gov/vuln/detail/CVE-2020-35906
  • rustsec.org/advisories/RUSTSEC-2020-0060.html

Code Behaviors & Features

Detect and mitigate CVE-2020-35906 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.2.1 before 0.3.6

Fixed versions

  • 0.3.6

Solution

Upgrade to version 0.3.6 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-416: Use After Free

Source file

cargo/futures-task/CVE-2020-35906.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.