{"id":"CVE-2023-22466","published":"2023-01-04T21:47:09Z","modified":"2025-03-10T21:32:32Z","title":"Tokio's reject_remote_clients configuration may get dropped when creating a Windows named pipe","vendor":"tokio-rs","product":"tokio","tier":"tail","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`.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00741,"percentile":0.50717,"provenance":"source"},"cwes":[{"id":"CWE-665","name":"Improper Initialization"}],"references":[{"url":"https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tokio-rs/tokio/pull/5336","tags":["x_refsource_MISC"]},{"url":"https://github.com/tokio-rs/tokio/releases/tag/tokio-1.23.1","tags":["x_refsource_MISC"]},{"url":"https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":10.14},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"tokio-rs","affectedVersions":[{"vendor":"tokio-rs","product":"tokio","versions":[">= 1.7.0, < 1.18.4",">= 1.19.0, < 1.20.3",">= 1.21.0, < 1.23.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-10T21:00:36.854340Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"tokio","vulnerableRanges":[">=1.7.0, <1.18.4",">=1.19.0, <1.20.3",">=1.21.0, <1.23.1"],"patched":["1.18.4","1.20.3","1.23.1"],"from":["GHSA-7rrj-xr53-82p7","RUSTSEC-2023-0001"],"provenance":"source"}],"summary":{"text":"Tokio, the Rust runtime, has a flaw in its Windows named pipe server: setting pipe_mode resets reject_remote_clients to false, silently undoing an earlier setting of true, in versions from 1.7.0 up to (but not including) 1.18.4, 1.20.3 and 1.23.1. An attacker with network access and low-privilege credentials could connect remotely to the named pipe, but only where its path is reachable through a publicly shared SMB folder, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:12Z"},"euvd":{"id":"EUVD-2023-0393","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-38191","published":"2021-08-08","fixed":"1.8.1","kev":false},{"cve":"CVE-2021-45710","published":"2021-12-26","fixed":"1.13.1","kev":false,"link":{"from":"CVE-2021-45710","to":"CVE-2023-22466","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:tokio","fromFixed":"1.13.1","toFixed":"1.18.4","daysApart":374}]}},{"cve":"CVE-2023-22466","published":"2023-01-04","fixed":"1.23.1","kev":false},{"cve":"CVE-2026-115567","published":"2026-10-23","fixed":"1.54.1","kev":false}],"package":"crates.io:tokio"}}