CVE-2025-58160
LOW 2.3CVSS 4.0Tracing logging user input may result in poisoning logs with ANSI escape sequences
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.
- Published
- 29 Aug 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-150
- Also known as
- GHSA-xwfj-jgwm-7wp5RUSTSEC-2025-0055
- Sources
- NVDJSONOSV GHSA-xwfj-jgwm-7wp5JSONOSV RUSTSEC-2025-0055JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.3 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | tracing-subscriber | < 0.3.20 | 0.3.20 |
| OSV | crates.io | tracing-subscriber | >= 0.0.0-0, < 0.3.20 | 0.3.20 |
References
- https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-58160 · ADVISORY
- https://github.com/tokio-rs/tracing · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0055.html · WEB, ADVISORY
- https://crates.io/crates/tracing-subscriber · PACKAGE
- https://github.com/tokio-rs/tracing/pull/3368 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 29 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Aug 2025)