Vulnerability · Published Aug 29, 2025 · Assigned by GitHub_M
CVE-2025-58160Tracing logging user input may result in poisoning logs with ANSI escape sequences
Low 2.3
In plain English
A low-severity security flaw in tracing from tokio-rs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rust-tracing-subscriber | no fix listed | DEBIAN-CVE-2025-58160 |
| Debian:13 | rust-tracing-subscriber | no fix listed | DEBIAN-CVE-2025-58160 |
| Debian:14 | rust-tracing-subscriber | 0.3.20-1 | DEBIAN-CVE-2025-58160 |
| Ubuntu:24.04:LTS | rust-tracing-subscriber | no fix listed | UBUNTU-CVE-2025-58160 |
| Ubuntu:25.10 | rust-tracing-subscriber | no fix listed | UBUNTU-CVE-2025-58160 |
| Ubuntu:26.04:LTS | rust-tracing-subscriber | no fix listed | UBUNTU-CVE-2025-58160 |
| Ubuntu:26.10 | rust-tracing-subscriber | no fix listed | UBUNTU-CVE-2025-58160 |
Affected products (as reported)
Weakness: CWE-150 · 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
References
- https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5 x_refsource_CONFIRM