CVE-2023-22466
Tokio's reject_remote_clients configuration may get dropped when creating a Windows named pipe
Also known as GHSA-7rrj-xr53-82p7, RUSTSEC-2023-0001
Mitigation
- Upgrade tokio to one of 1.18.4, 1.20.3, 1.23.1 (or later in the same release line).
Who should check
- Projects that depend on crates.io package tokio (>= 1.7.0, < 1.18.4)
- Anyone running tokio-rs tokio >= 1.7.0, < 1.18.4; >= 1.19.0, < 1.20.3; >= 1.21.0, < 1.23.1
Vulnerability facts
- Affected
- tokio >= 1.7.0, < 1.18.4
- Fixed in
- 1.18.4, 1.20.3, 1.23.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: Low
- EPSS
- 0.74% chance of exploitation in 30 days (percentile 51, 2026-11-26)
- CWE
- CWE-665
- Modified
Description
Tokio is a runtime for writing applications with Rust. Starting with version 1.7.0 and prior to versions 1.18.4, 1.20.3, and 1.23.1, when configuring a Windows named pipe server, setting `pipe_mode` will reset `reject_remote_clients` to `false`. If the application has previously configured `reject_remote_clients` to `true`, this effectively undoes the configuration. Remote clients may only access the named pipe if the named pipe's associated path is accessible via a publicly shared folder (SMB). Versions 1.23.1, 1.20.3, and 1.18.4 have been patched. The fix will also be present in all releases starting from version 1.24.0. Named pipes were introduced to Tokio in version 1.7.0, so releases older than 1.7.0 are not affected. As a workaround, ensure that `pipe_mode` is set first after initializing a `ServerOptions`.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-22466. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-22466.md Affected: tokio >= 1.7.0, < 1.18.4 Fixed in: 1.18.4, 1.20.3, 1.23.1 Steps: 1. Search this machine and project for tokio (crates.io), tokio-rs tokio: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-22466 being exploited?
There is no confirmed exploitation: CVE-2023-22466 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-22466?
Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2023-22466?
tokio >= 1.7.0, < 1.18.4.
Is there a fix for CVE-2023-22466?
Yes. Fixed in 1.18.4, 1.20.3, 1.23.1. Upgrade tokio to one of 1.18.4, 1.20.3, 1.23.1 (or later in the same release line).
How do I check if I'm affected by CVE-2023-22466?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.