CVE-2025-58160 Details
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.
A vulnerability allowing ANSI escape sequence injection has been identified in the tracing-subscriber crate for Rust, affecting versions prior to 0.3.20. This vulnerability could allow untrusted user input containing ANSI escape sequences to be injected into terminal output when logged. Such injection could manipulate terminal title bars, clear screens, modify terminal display, and potentially mislead users through terminal manipulation. While the impact of this vulnerability is minimal on its own, it could exploit security issues in terminal emulators that mishandle ANSI escape sequences in logs.
Users can upgrade to tracing-subscriber version 0.3.20 or later, which addresses the vulnerability by escaping ANSI control characters when logging events to terminal-bound destinations. Alternatively, logs can be printed to terminal emulators that do not process ANSI control sequences.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 29, 2025CISA-ADP
Assessed Sep 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| tokio-rs tracing-subscriber | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 29, 2025 | New CVE Received | [email protected] |
Volerion