# CVE-2023-22466: Tokio's reject_remote_clients configuration may get dropped when creating a Windows named pipe

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2023-01-04T12:00:00.000Z
- Modified: 2026-10-12T18:00:06.115Z
- Also known as: GHSA-7rrj-xr53-82p7, RUSTSEC-2023-0001
- Weaknesses: CWE-665
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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`.

(As written by CVE List.)

## Affected

- tokio-rs tokio: >= 1.7.0, < 1.18.4; >= 1.19.0, < 1.20.3; >= 1.21.0, < 1.23.1
- tokio (crates.io): from 1.7.0 before 1.18.4; from 1.19.0 before 1.20.3; from 1.21.0 before 1.23.1
- tokio tokio: from 1.7.0 before 1.18.4; from 1.19.0 before 1.20.3; from 1.21.0 before 1.23.1

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7> (mitigation, third-party-advisory, web)
- <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://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> (advisory, web)
- <https://crates.io/crates/tokio> (package)

## Sources

- CVE List: [CVE-2023-22466](https://www.cve.org/CVERecord?id=CVE-2023-22466), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-7rrj-xr53-82p7](https://github.com/advisories/GHSA-7rrj-xr53-82p7), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2023-0001](https://rustsec.org/advisories/RUSTSEC-2023-0001.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2023-22466](https://nvd.nist.gov/vuln/detail/CVE-2023-22466), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22466 · Whole record: https://cve.day/CVE-2023-22466.json · Rebuilt by cve.day 2026-11-25T22:58:21.483Z
