CVE-2025-58160tokio-rs tracing
Low 2.3 No auth needed
Follow: this CVE · tokio-rs · tokio-rs tracing We alert you by email or Slack (account required).
- Priority
- 29
- CVSS 4.0
- 2.3
- EPSS
- —
- Auth required
- No
- Published
- Aug 29, 2025
- Updated
- Oct 18, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-150
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
tracing is a framework for instrumenting Rust programs to collect structured, event-based diagnostic information. Prior to version 0.3.20, tracing-subscriber was vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to manipulate terminal title bars, clear screens or modify terminal display, and potentially mislead users through terminal manipulation. tracing-subscriber version 0.3.20 fixes this vulnerability by escaping ANSI control characters when writing events to destinations that may be printed to the terminal. A workaround involves avoiding printing logs to terminal emulators without escaping ANSI control sequences.
What to do
- Apply the vendor's security update for tracing.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | tracing-subscriber |
< 0.3.20 |
0.3.20 |
cargo update -p tracing-subscriber --precise 0.3.20 |
| crates.io | tracing-subscriber |
≥ 0.0.0-0 < 0.3.20 |
0.3.20 |
cargo update -p tracing-subscriber --precise 0.3.20 |
Per OSV / GitHub Advisories (GHSA-xwfj-jgwm-7wp5, RUSTSEC-2025-0055). Check the version in your lockfile before upgrading.
Affected products
- tokio-rs · tracing
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for rustup · SUSE · openSUSE-SU-2026:22456-1 · Nov 24, 2026 High
- mdbook-0.5.4-1.1 on GA media · SUSE · openSUSE-SU-2026:12402-1 · Nov 3, 2026 High
- Security update for agama · SUSE · openSUSE-SU-2026:22075-1 · Oct 12, 2026 Medium
Also: SUSE (+25)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.