CVE-2024-27308 json
Mio's tokens for named pipes may be delivered after deregistration
published 2024-03-04 2 y ago modified 2026-10-12 27 d ago also EUVD-2024-1000 , GHSA-r8w9-5wcg-vfj7 , RUSTSEC-2024-0019
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
Mio is a Metal I/O library for Rust. When using named pipes on Windows, mio will under some circumstances return invalid tokens that correspond to named pipes that have already been deregistered from the mio registry. The impact of this vulnerability depends on how mio is used. For some applications, invalid tokens may be ignored or cause a warning or a crash. On the other hand, for applications that store pointers in the tokens, this vulnerability may result in a use-after-free. For users of Tokio, this vulnerability is serious and can result in a use-after-free in Tokio. The vulnerability is Windows-specific, and can only happen if you are using named pipes. Other IO resources are not affected. This vulnerability has been fixed in mio v0.8.11. All versions of mio between v0.7.2 and v0.8.10 are vulnerable. Tokio is vulnerable when you are using a vulnerable version of mio AND you are using at least Tokio v1.30.0. Versions of Tokio prior to v1.30.0 will ignore invalid tokens, so they are not vulnerable. Vulnerable libraries that use mio can work around this issue by detecting and ignoring invalid tokens.
Patch / fix
- crates.io mio 0.8.11
- mio_project mio 0.8.11
- github.com/tokio-rs/mio@90d4fe0 commit
- github.com/tokio-rs/mio#1760 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.88% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | mio | >=0.7.2, <0.8.11 |
0.8.11 |
Affected products
- tokio-rs mio
- mio_project mio
Classification
References
-
github.com
/tokio-rs/mio/pull/1760
web, issue-tracking
-
github.com
/tokio-rs/mio/commit/90d4fe00df870acd3d38f3dc4face9aacab8fbb9
web, patch
-
github.com
/tokio-rs/mio/security/advisories/GHSA-r8w9-5wcg-vfj7
web, vendor-advisory
-
github.com
/tokio-rs/tokio/issues/6369
web, issue-tracking
-
nvd.nist.gov
/vuln/detail/CVE-2024-27308
advisory
-
github.com
/tokio-rs/mio
package
-
crates.io
/crates/mio
package
-
rustsec.org
/advisories/RUSTSEC-2024-0019.html
advisory
Sources
- CVE List CVE-2024-27308
- GitHub Advisory GHSA-r8w9-5wcg-vfj7
- NVD CVE-2024-27308
- OSV RUSTSEC-2024-0019
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.