# CVE-2023-22466: Tokio's reject\_remote\_clients configuration may get dropped when creating a Windows named pipe

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.74% (percentile 51, 2026-11-28)
- **CWE:** CWE-665
- **Aliases:** GHSA-7rrj-xr53-82p7, RUSTSEC-2023-0001
- **Published:** 2023-01-04T12:00:00.000Z
- **Modified:** 2026-10-12T18:00:06.115Z

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

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

- crates.io `tokio`: affected \>= 1.7.0, \< 1.18.4; fixed 1.18.4, 1.20.3, 1.23.1 (osv)
- tokio-rs tokio: \>= 1.7.0, \< 1.18.4; \>= 1.19.0, \< 1.20.3; \>= 1.21.0, \< 1.23.1 (cvelist)

## Mitigation

- Upgrade tokio to one of 1.18.4, 1.20.3, 1.23.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

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

## 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-28).

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

## References

- vendor: <https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-22466>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2023-0001.html>
- patch: <https://github.com/tokio-rs/tokio/pull/5336>
- other: <https://github.com/tokio-rs/tokio/releases/tag/tokio-1.23.1>
- other: <https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients>
- other: <https://github.com/tokio-rs/tokio>
- other: <https://crates.io/crates/tokio>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-22466>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7rrj-xr53-82p7> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2023-0001> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-22466> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-22466>
