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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-01-04 · Modified: 2025-03-10
- Aliases: UBUNTU-CVE-2023-22466, DEBIAN-CVE-2023-22466, CGA-ggm5-m8pj-j53v, CGA-jr7w-hcmr-9wq7, GHSA-7rrj-xr53-82p7, RUSTSEC-2023-0001
- Record: https://cvemate.com/vulnerability/CVE-2023-22466 · JSON: https://cvemate.com/vulnerability/CVE-2023-22466/json

## Description

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

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L
- EPSS: 0.612%, percentile 50.778%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard pulumi-watch (Chainguard): \< 0.1.5-r5
- wolfi pulumi-watch (Wolfi): \< 0.1.5-r5
- Crates.Io tokio (Crates.Io): ≥ 1.7.0, \< 1.18.4 \| ≥ 1.19.0, \< 1.20.3 \| ≥ 1.21.0, \< 1.23.1
- debian rust-tokio (Debian): \< 1.24.2-1
- ubuntu rust-tokio (Ubuntu): All versions (No fix recorded)
- tokio-rs tokio: ≥ 1.7.0, \< 1.18.4 \| ≥ 1.19.0, \< 1.20.3 \| ≥ 1.21.0, \< 1.23.1
- tokio tokio: ≥ 1.7.0, \< 1.18.4 \| ≥ 1.19.0, \< 1.20.3 \| ≥ 1.21.0, \< 1.23.1

## References

- <https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7>
- <https://github.com/tokio-rs/tokio/pull/5336>
- <https://github.com/tokio-rs/tokio/releases/tag/tokio-1.23.1>
- <https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients>
- <https://ubuntu.com/security/CVE-2023-22466>
- <https://www.cve.org/CVERecord?id=CVE-2023-22466>
- <https://security-tracker.debian.org/tracker/CVE-2023-22466>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22466.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22466>
- <https://github.com/tokio-rs/tokio>
- <https://rustsec.org/advisories/RUSTSEC-2023-0001.html>
- <https://crates.io/crates/tokio>

---

Data as of 2026-12-05T10:25:52.460Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
