{"answers":{"affected":"7 open source packages ship an affected version, including tokio. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-22466 in the wild and no public exploit code.","fix":"Upgrade tokio to a fixed version for your release line: 1.20.3, 1.23.1 or 1.18.4.","what":"CVE-2023-22466 is a medium-severity vulnerability in tokio-rs tokio, published on 4 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-22466 and fix it if it is affected.\n\nWhat it is: CVE-2023-22466 is a medium-severity vulnerability in tokio-rs tokio, published on 4 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-22466 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tokio (crates.io): affected from 1.19.0; fixed in 1.20.3\n- tokio (crates.io): affected from 1.19.0; fixed in 1.20.3\n- tokio (crates.io): affected from 1.21.0; fixed in 1.23.1\n- tokio (crates.io): affected from 1.21.0; fixed in 1.23.1\n- tokio (crates.io): affected from 1.7.0; fixed in 1.18.4, 1.20.3, 1.23.1\n- tokio (crates.io): affected from 1.7.0; fixed in 1.18.4\n- tokio (crates.io): affected from 1.7.0; fixed in 1.18.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-22466/ (Markdown: https://insights.sbomify.com/CVE-2023-22466/index.md)","id":"CVE-2023-22466","markdown":"https://insights.sbomify.com/CVE-2023-22466/index.md","name":"CVE-2023-22466","record":{"aliases":["DEBIAN-CVE-2023-22466","GHSA-7rrj-xr53-82p7","RUSTSEC-2023-0001","UBUNTU-CVE-2023-22466"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Rust async runtime","requires_auth":"low_privilege","summary":"Tokio library allows remote access to Windows named pipes by silently disabling the reject_remote_clients security setting when pipe_mode is configured.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tokio","vendor":"tokio"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-665","name":"Improper Initialization"}],"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`.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Tokio's reject_remote_clients configuration may get dropped when creating a Windows named pipe","id":"CVE-2023-22466","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"security_feature_bypass","year":"2023"},"n_packages":7,"n_references":4,"next":{"headline":"luxon.js inefficient regular expression complexity vulnerability","id":"CVE-2023-22467"},"packages":[{"ecosystem":"crates.io","fixed":["1.20.3"],"introduced":["1.19.0"],"last_affected":[],"package":"tokio","purl":null,"source":"GHSA-7rrj-xr53-82p7"},{"ecosystem":"crates.io","fixed":["1.20.3"],"introduced":["1.19.0"],"last_affected":[],"package":"tokio","purl":"pkg:cargo/tokio","source":"GHSA-7rrj-xr53-82p7"},{"ecosystem":"crates.io","fixed":["1.23.1"],"introduced":["1.21.0"],"last_affected":[],"package":"tokio","purl":null,"source":"GHSA-7rrj-xr53-82p7"},{"ecosystem":"crates.io","fixed":["1.23.1"],"introduced":["1.21.0"],"last_affected":[],"package":"tokio","purl":"pkg:cargo/tokio","source":"GHSA-7rrj-xr53-82p7"},{"ecosystem":"crates.io","fixed":["1.18.4","1.20.3","1.23.1"],"introduced":["1.7.0","1.19.0","1.21.0"],"last_affected":[],"package":"tokio","purl":"pkg:cargo/tokio","source":"RUSTSEC-2023-0001"},{"ecosystem":"crates.io","fixed":["1.18.4"],"introduced":["1.7.0"],"last_affected":[],"package":"tokio","purl":null,"source":"GHSA-7rrj-xr53-82p7"},{"ecosystem":"crates.io","fixed":["1.18.4"],"introduced":["1.7.0"],"last_affected":[],"package":"tokio","purl":"pkg:cargo/tokio","source":"GHSA-7rrj-xr53-82p7"}],"prev":{"headline":"Http4s has fatal error parsing User-Agent and Server headers","id":"CVE-2023-22465"},"products":["tokio"],"published":"2023-01-04","related":[{"cvss_score":8.1,"headline":"Race Condition in tokio","id":"CVE-2021-45710","kev_date_added":null,"published":"2021-12-26"},{"cvss_score":5.9,"headline":"Race condition in tokio","id":"CVE-2021-38191","kev_date_added":null,"published":"2021-08-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["tokio-rs"]},"summary":"Tokio library allows remote access to Windows named pipes by silently disabling the reject_remote_clients security setting when pipe_mode is configured.","url":"https://insights.sbomify.com/CVE-2023-22466/"}