Appsecure logo

CVE-2023-22466: Medium Vulnerability in Tokio

CVE-2023-22466 affects Tokio versions prior to 1.18.4, 1.20.3, and 1.23.1, allowing remote clients unauthorized access to named pipes. Organizations should prioritize patching to mitigate this risk.

MEDIUMCVSS 5.4 · Published January 4, 2023

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

CVE-2023-22466 is a medium-severity vulnerability affecting the Tokio runtime, which is widely used for developing applications in Rust. This vulnerability allows remote clients to access named pipes without proper authorization, posing a significant risk to organizations utilizing this technology. The issue arises from a misconfiguration in the named pipe server setup, specifically when the `pipe_mode` setting is adjusted, which inadvertently resets the `reject_remote_clients` option to false, thereby negating any prior security measures.

The CVSS score for this vulnerability is 5.4, indicating a medium severity level. Organizations using affected versions of Tokio should be particularly concerned, as this flaw could lead to unauthorized access to sensitive data if remote clients are able to connect to named pipes through publicly shared folders. The vulnerability was first published on January 4, 2023, and has been modified since.

Versions of Tokio affected include all releases from 1.7.0 up to, but not including, 1.18.4, 1.20.3, and 1.23.1. The mitigation for this vulnerability has been included in patches for these versions. Organizations should prioritize patching immediately to secure their applications against potential exploitation.

Implementing the fix will ensure that the `reject_remote_clients` setting remains effective, safeguarding against unauthorized access. For those unable to immediately patch, a workaround is to ensure that `pipe_mode` is configured first after initializing the `ServerOptions`.

Vulnerability Details

The official description of CVE-2023-22466 states that it affects the Tokio runtime, specifically in the context of a Windows named pipe server configuration. The vulnerability results from the fact that when `pipe_mode` is set, it resets the `reject_remote_clients` option, allowing unauthorized access if this setting was previously configured to deny remote clients.

The vulnerability is categorized under CWE-665, which relates to improper resource isolation. The impact includes low confidentiality and availability, with no integrity impact. The configuration flaw enables remote clients to exploit accessible named pipes through shared folders using SMB, which can lead to unauthorized data access.

Patching is available in versions 1.18.4, 1.20.3, and 1.23.1, with all future releases from version 1.24.0 including the fix. The publication date for this vulnerability is January 4, 2023.

Technical Analysis

The root cause of CVE-2023-22466 lies in the misconfiguration of the Tokio server options, specifically the interaction between `pipe_mode` and `reject_remote_clients`. When `pipe_mode` is set, it inadvertently allows access to remote clients, negating the previous security settings established by `reject_remote_clients`. This flaw can be exploited over a network, as named pipes are accessible if the associated path is shared publicly.

The attack vector is classified as NETWORK, with low attack complexity and low privileges required. Importantly, user interaction is not required for exploitation. The potential impacts include a confidentiality impact rated as low, meaning sensitive data may be exposed, while availability is also rated low, indicating a limited operational impact.

Risk & Impact Analysis

Risk to organizations includes potential unauthorized access to sensitive information through named pipes that are not adequately secured. The blast radius is concerning as multiple applications using the Tokio runtime could be affected if they are not patched promptly. Given the CVSS score of 5.4, organizations should address this vulnerability in their priority patch cycle.

With the vulnerability being publicly disclosed, the urgency for remediation is heightened. Organizations leveraging Tokio should ensure they have inventory visibility of all instances where affected versions are running and implement patches or workarounds immediately. Failure to address this vulnerability can lead to significant security breaches, particularly for applications that handle sensitive data.

Exploitation Status

Signal

Status

Known Exploit

No

Public PoC

No

Actively Exploited

No

Ransomware Use

No

Affected Versions

The versions of Tokio affected by CVE-2023-22466 include all releases starting from 1.7.0 up to, but not including, 1.18.4, 1.20.3, and 1.23.1. Organizations should ensure they upgrade to the patched versions 1.23.1, 1.20.3, or 1.18.4 or later.

Mitigation & Remediation

Organizations should prioritize patching by upgrading Tokio to versions 1.18.4, 1.20.3, or 1.23.1 to remediate this vulnerability. If immediate patching is not feasible, a workaround is to configure `pipe_mode` first after initializing the `ServerOptions` to maintain the `reject_remote_clients` setting effectively. For further guidance on secure coding practices, organizations can refer to the application security checklist to ensure comprehensive security measures are in place.

Detection Guidance

Organizations should monitor logs for anomalies related to named pipes, particularly focusing on access attempts from remote clients. Behavioral anomalies indicating unexpected access patterns should trigger alerts. Additionally, network signatures can be established to identify unauthorized access attempts to shared named pipes.

AppSecure Threat Intelligence Insight

CVE-2023-22466 highlights the importance of secure configuration in application development, particularly in environments that utilize networked resources. The vulnerability illustrates a prevalent trend where misconfigurations lead to security lapses, emphasizing the need for thorough security assessments.

Security teams should incorporate regular audits of server configurations and implement robust testing frameworks. Utilizing services such as penetration testing can help identify similar vulnerabilities in their infrastructure.

To stay updated with evolving security challenges, organizations should engage with resources that offer insights into common vulnerabilities and effective mitigation strategies. Continuous learning and adaptation to emerging threats are vital for maintaining a secure application environment.

Organizations are encouraged to review best practices for secure coding and configuration management regularly. For further insights, they can refer to resources like the vulnerability management program to strengthen their overall security posture.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.