CVE-2023-22466
MEDIUM 5.4CVSS 3.1Tokio reject_remote_clients configuration may get dropped when creating a Windows named pipe
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.
- Published
- 4 Jan 2023
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-665
- Also known as
- GHSA-7rrj-xr53-82p7RUSTSEC-2023-0001
- Sources
- NVDJSONOSV GHSA-7rrj-xr53-82p7JSONOSV RUSTSEC-2023-0001JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:* |
>= 1.7.0, < 1.18.4 | 1.18.4 |
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:* |
>= 1.19.0, < 1.20.3 | 1.20.3 |
| NVD | tokio | tokiocpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:* |
>= 1.21.0, < 1.23.1 | 1.23.1 |
| OSV | crates.io | tokio | >= 1.7.0, < 1.18.4 | 1.18.4 |
| OSV | crates.io | tokio | >= 1.19.0, < 1.20.3 | 1.20.3 |
| OSV | crates.io | tokio | >= 1.21.0, < 1.23.1 | 1.23.1 |
| OSV | crates.io | tokio | >= 1.7.0, < 1.18.4; >= 1.19.0, < 1.20.3; >= 1.21.0, < 1.23.1 | 1.18.4, 1.20.3, 1.23.1 |
References
- https://github.com/tokio-rs/tokio/pull/5336 · Patch, Third Party Advisory, WEB
- https://github.com/tokio-rs/tokio/releases/tag/tokio-1.23.1 · Release Notes, Third Party Advisory, WEB
- https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7 · Mitigation, Third Party Advisory, WEB
- https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients · Technical Description, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-22466 · ADVISORY
- https://github.com/tokio-rs/tokio · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2023-0001.html · WEB, ADVISORY
- https://crates.io/crates/tokio · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 4 Jan 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Jan 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2023)