{"api_version":"1","generated_at":"2026-04-23T09:53:32+00:00","cve":"CVE-2023-22466","urls":{"html":"https://cve.report/CVE-2023-22466","api":"https://cve.report/api/cve/CVE-2023-22466.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-22466","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-22466"},"summary":{"title":"CVE-2023-22466","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`.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-01-04 22:15:00","updated_at":"2023-01-11 02:09:00"},"problem_types":["CWE-665"],"metrics":[],"references":[{"url":"https://github.com/tokio-rs/tokio/releases/tag/tokio-1.23.1","name":"https://github.com/tokio-rs/tokio/releases/tag/tokio-1.23.1","refsource":"MISC","tags":[],"title":"Release Tokio v1.23.1 · tokio-rs/tokio · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients","name":"https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients","refsource":"MISC","tags":[],"title":"CreateNamedPipeA function (winbase.h) - Win32 apps | Microsoft Learn","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/tokio-rs/tokio/pull/5336","name":"https://github.com/tokio-rs/tokio/pull/5336","refsource":"MISC","tags":[],"title":"net: fix named pipes server configuration builder by carllerche · Pull Request #5336 · tokio-rs/tokio · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7","name":"https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7","refsource":"MISC","tags":[],"title":"reject_remote_clients configuration may get dropped when creating a Windows named pipe · Advisory · tokio-rs/tokio · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-22466","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22466","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"22466","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"tokio","cpe5":"tokio","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"rust","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-22466","qid":"182996","title":"Debian Security Update for rust-tokio (CVE-2023-22466)"},{"cve":"CVE-2023-22466","qid":"904953","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rust (12431)"},{"cve":"CVE-2023-22466","qid":"905007","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for netavark (12578)"},{"cve":"CVE-2023-22466","qid":"905064","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rust (12645)"},{"cve":"CVE-2023-22466","qid":"905155","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kata-containers (12506)"},{"cve":"CVE-2023-22466","qid":"905157","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rpm-ostree (12629)"},{"cve":"CVE-2023-22466","qid":"905185","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rust (12912)"},{"cve":"CVE-2023-22466","qid":"905216","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rpm-ostree (12937)"},{"cve":"CVE-2023-22466","qid":"905222","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rust (12938)"},{"cve":"CVE-2023-22466","qid":"905227","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for kata-containers (12932)"},{"cve":"CVE-2023-22466","qid":"905229","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for netavark (12936)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-22466","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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`."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-665: Improper Initialization","cweId":"CWE-665"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"tokio-rs","product":{"product_data":[{"product_name":"tokio","version":{"version_data":[{"version_value":">= 1.7.0, < 1.18.4","version_affected":"="},{"version_value":">= 1.19.0, < 1.20.3","version_affected":"="},{"version_value":">= 1.21.0, < 1.23.1","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7","refsource":"MISC","name":"https://github.com/tokio-rs/tokio/security/advisories/GHSA-7rrj-xr53-82p7"},{"url":"https://github.com/tokio-rs/tokio/pull/5336","refsource":"MISC","name":"https://github.com/tokio-rs/tokio/pull/5336"},{"url":"https://github.com/tokio-rs/tokio/releases/tag/tokio-1.23.1","refsource":"MISC","name":"https://github.com/tokio-rs/tokio/releases/tag/tokio-1.23.1"},{"url":"https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients","refsource":"MISC","name":"https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients"}]},"source":{"advisory":"GHSA-7rrj-xr53-82p7","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","version":"3.1"}]}},"nvd":{"publishedDate":"2023-01-04 22:15:00","lastModifiedDate":"2023-01-11 02:09:00","problem_types":["CWE-665"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.5}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:*","versionStartIncluding":"1.21.0","versionEndExcluding":"1.23.1","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:*","versionStartIncluding":"1.19.0","versionEndExcluding":"1.20.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:tokio:tokio:*:*:*:*:*:rust:*:*","versionStartIncluding":"1.7.0","versionEndExcluding":"1.18.4","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}