Skip to content
Heist/ feed
Back to feed
UnratedFix available

reject_remote_clients Configuration corruption

Type: advisorySources: OSV

On Windows, configuring a named pipe server with [pipe_mode] will force [ServerOptions]::[reject_remote_clients] as `false`. This drops any intended explicit configuration for the [reject_remote_clients] that may have been set as `true` previously. The default setting of [reject_remote_clients] is normally `true` meaning the default is also overridden as `false`. ## Workarounds Ensure that [pipe_mode] is set first after initializing a [ServerOptions]. For example: ```rust let mut opts = ServerOptions::new(); opts.pipe_mode(PipeMode::Message); opts.reject_remote_clients(true); ``` [ServerOptions]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html [pipe_mode]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.pipe_mode [reject_remote_clients]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.reject_remote_clients

Products
tokio
Affected versions
Not specified
Fixed versions
1.18.4, 1.20.3, 1.23.1
CVEs
CVE-2023-22466
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 08:42 UTC · Revision 1

Source evidence

reject_remote_clients Configuration corruption

core-osv · Original source

Published 4 Jan 2023, 12:00 UTC

On Windows, configuring a named pipe server with [pipe_mode] will force [ServerOptions]::[reject_remote_clients] as `false`. This drops any intended explicit configuration for the [reject_remote_clients] that may have been set as `true` previously. The default setting of [reject_remote_clients] is normally `true` meaning the default is also overridden as `false`. ## Workarounds Ensure that [pipe_mode] is set first after initializing a [ServerOptions]. For example: ```rust let mut opts = ServerOptions::new(); opts.pipe_mode(PipeMode::Message); opts.reject_remote_clients(true); ``` [ServerOptions]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html [pipe_mode]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.pipe_mode [reject_remote_clients]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.reject_remote_clients

osv:RUSTSEC-2023-0001

tokio

Fixed versions: 1.18.4, 1.20.3, 1.23.1

Complete source record
{
  "id": "a3c91c560b0b697279de61e33b86bed8f0c8c56c2d29ccaa4f25512d076c01f6",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2023-0001",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "reject_remote_clients Configuration corruption",
    "summary": "On Windows, configuring a named pipe server with [pipe_mode] will force [ServerOptions]::[reject_remote_clients] as `false`. This drops any intended explicit configuration for the [reject_remote_clients] that may have been set as `true` previously. The default setting of [reject_remote_clients] is normally `true` meaning the default is also overridden as `false`. ## Workarounds Ensure that [pipe_mode] is set first after initializing a [ServerOptions]. For example: ```rust let mut opts = ServerOptions::new(); opts.pipe_mode(PipeMode::Message); opts.reject_remote_clients(true); ``` [ServerOptions]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html [pipe_mode]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.pipe_mode [reject_remote_clients]: https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/struct.ServerOptions.html#method.reject_remote_clients",
    "evidence": "osv:RUSTSEC-2023-0001",
    "products": [
      {
        "name": {
          "value": "tokio",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.18.4",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "1.20.3",
            "evidence": "/affected/0/ranges"
          },
          {
            "value": "1.23.1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "RUSTSEC-2023-0001",
      "aliases": [
        "CVE-2023-22466",
        "GHSA-7rrj-xr53-82p7",
        "RUSTSEC-2023-0001"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "1.7.0"
                },
                {
                  "fixed": "1.18.4"
                },
                {
                  "introduced": "1.19.0"
                },
                {
                  "fixed": "1.20.3"
                },
                {
                  "introduced": "1.21.0"
                },
                {
                  "fixed": "1.23.1"
                }
              ]
            }
          ],
          "package": {
            "name": "tokio",
            "purl": "pkg:cargo/tokio",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": null,
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2023-0001.json",
            "categories": [],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [
                "windows"
              ],
              "arch": [],
              "functions": []
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-12T18:00:06.115643924Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/tokio",
        "https://rustsec.org/advisories/RUSTSEC-2023-0001.html",
        "https://github.com/tokio-rs/tokio/pull/5336",
        "https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea#pipe_reject_remote_clients"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-22466",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 306360,
  "published_at": "2023-01-04T12:00:00+00:00"
}