cve.bz

CVE-2023-22466 tokio tokio: Improper Initialization

5.4 mediumEPSS 0.7%Fix available

Medium (5.4) in tokio tokio. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in tokio 1.18.4, 1.20.3, 1.23.1.

On this page
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`.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS
0.7% (up from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-03-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-665 Improper Initialization
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-22466 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-22466?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-22466?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-22466 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tokio:tokiofrom 1.7.0 before 1.18.4
tokio:tokiofrom 1.19.0 before 1.20.3
tokio:tokiofrom 1.21.0 before 1.23.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7rrj-xr53-82p7crates.iotokio>=1.7.0 <1.18.41.18.4
GHSA-7rrj-xr53-82p7crates.iotokio>=1.19.0 <1.20.31.20.3
GHSA-7rrj-xr53-82p7crates.iotokio>=1.21.0 <1.23.11.23.1
RUSTSEC-2023-0001crates.iotokio>=1.7.0 <1.18.4
>=1.19.0 <1.20.3
>=1.21.0 <1.23.1
1.18.4, 1.20.3, 1.23.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14rust-tokio1.24.2-1DEBIAN-CVE-2023-22466
Ubuntu22.04:LTSrust-tokiono fix listedUBUNTU-CVE-2023-22466

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON