CVE-2025-58160: CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences in tokio-rs tracing
CVE-2025-58160 is a low-severity vulnerability in the tokio-rs tracing framework, specifically affecting tracing-subscriber versions prior to 0.3.20. The issue involves improper neutralization of ANSI escape sequences in untrusted user input that is logged and displayed in terminal emulators. This can allow attackers to inject ANSI sequences that manipulate terminal output, such as changing terminal titles or clearing the screen, which may mislead users. The vulnerability is fixed in tracing-subscriber version 0.3.20 by escaping ANSI control characters in terminal output. No known exploits have been reported in the wild.
AI Analysis
Technical Summary
CVE-2025-58160 is a vulnerability classified under CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences) in the tokio-rs tracing framework's tracing-subscriber component. Versions prior to 0.3.20 do not properly escape ANSI escape sequences in untrusted input that is logged and rendered in terminal emulators. This allows an attacker to inject ANSI control sequences that can alter terminal display behavior, such as changing the terminal title or clearing the screen, potentially misleading users. The issue is resolved in version 0.3.20 by implementing proper escaping of ANSI control characters in terminal output.
Potential Impact
The vulnerability allows injection of ANSI escape sequences through logged untrusted input, which can manipulate terminal output. This may cause misleading terminal displays, such as altered titles or cleared screens, potentially confusing users. However, it does not lead to code execution or privilege escalation. No known exploits have been reported in the wild.
Mitigation Recommendations
A fix is available in tracing-subscriber version 0.3.20, which properly escapes ANSI control characters in terminal output. Users should upgrade to version 0.3.20 or later. As a workaround, avoid printing logs containing unescaped ANSI sequences to terminal emulators. No additional actions are required if the fix is applied.
CVE-2025-58160: CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences in tokio-rs tracing
Description
CVE-2025-58160 is a low-severity vulnerability in the tokio-rs tracing framework, specifically affecting tracing-subscriber versions prior to 0.3.20. The issue involves improper neutralization of ANSI escape sequences in untrusted user input that is logged and displayed in terminal emulators. This can allow attackers to inject ANSI sequences that manipulate terminal output, such as changing terminal titles or clearing the screen, which may mislead users. The vulnerability is fixed in tracing-subscriber version 0.3.20 by escaping ANSI control characters in terminal output. No known exploits have been reported in the wild.
CVSS v4.0
Score 2.3low
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-58160 is a vulnerability classified under CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences) in the tokio-rs tracing framework's tracing-subscriber component. Versions prior to 0.3.20 do not properly escape ANSI escape sequences in untrusted input that is logged and rendered in terminal emulators. This allows an attacker to inject ANSI control sequences that can alter terminal display behavior, such as changing the terminal title or clearing the screen, potentially misleading users. The issue is resolved in version 0.3.20 by implementing proper escaping of ANSI control characters in terminal output.
Potential Impact
The vulnerability allows injection of ANSI escape sequences through logged untrusted input, which can manipulate terminal output. This may cause misleading terminal displays, such as altered titles or cleared screens, potentially confusing users. However, it does not lead to code execution or privilege escalation. No known exploits have been reported in the wild.
Mitigation Recommendations
A fix is available in tracing-subscriber version 0.3.20, which properly escapes ANSI control characters in terminal output. Users should upgrade to version 0.3.20 or later. As a workaround, avoid printing logs containing unescaped ANSI sequences to terminal emulators. No additional actions are required if the fix is applied.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-08-27T13:34:56.186Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 68b21c80ad5a09ad007ba03d
Added to database: 08/29/2025, 21:32:48 UTC
Last enriched: 06/14/2026, 21:18:03 UTC
Last updated: 09/10/2026, 19:36:51 UTC
Views: 206
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.