Improper Handling of Invalid Use of Special Elements Affecting mio package, versions >=0.7.2 <0.8.11


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-MIO-6371504
  • published5 Mar 2024
  • disclosed4 Mar 2024
  • creditrofoun, Radek Vít

Introduced: 4 Mar 2024

CVE-2024-27308  (opens in a new tab)
CWE-159  (opens in a new tab)

How to fix?

Upgrade mio to version 0.8.11 or higher.

Overview

mio is a lightweight non-blocking IO.

Affected versions of this package are vulnerable to Improper Handling of Invalid Use of Special Elements due to the return of invalid tokens that correspond to named pipes that have already been deregistered from the registry. For applications that store pointers in the tokens, this vulnerability may result in a use-after-free.

Notes:

  1. For some applications, invalid tokens may be ignored or cause a warning or a crash.

  2. For users of Tokio, this vulnerability is serious and can result in a use-after-free in Tokio.

  3. The vulnerability is Windows-specific, and can only happen if you are using named pipes. Other IO resources are not affected.

References

CVSS Scores

version 3.1