CVE-2025-58160
Tracing logging user input may result in poisoning logs with ANSI escape sequences
Also known as GHSA-xwfj-jgwm-7wp5, RUSTSEC-2025-0055
Mitigation
- Upgrade tracing-subscriber to 0.3.20 or later.
Who should check
- Projects that depend on crates.io package tracing-subscriber (< 0.3.20)
- Anyone running tokio-rs tracing < 0.3.20
Vulnerability facts
- Affected
- tracing-subscriber < 0.3.20
- Fixed in
- 0.3.20
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 2.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.62% chance of exploitation in 30 days (percentile 44, 2026-11-26)
- CWE
- CWE-150
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io tracing-subscriber | < 0.3.20 | 0.3.20 | osv |
| tokio-rs tracing | < 0.3.20 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-58160. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-58160.md Affected: tracing-subscriber < 0.3.20 Fixed in: 0.3.20 Steps: 1. Search this machine and project for tracing-subscriber (crates.io), tokio-rs tracing: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-58160 being exploited?
There is no confirmed exploitation: CVE-2025-58160 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.62% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-58160?
Low: CVSS 2.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-58160?
tracing-subscriber < 0.3.20.
Is there a fix for CVE-2025-58160?
Yes. Fixed in 0.3.20. Upgrade tracing-subscriber to 0.3.20 or later.
How do I check if I'm affected by CVE-2025-58160?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.