Skip to main content
EPSS 0.3%top 75%

CVE-2025-58160: CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences in tokio-rs tracing

0
Low
VulnerabilityCVE-2025-58160cvecve-2025-58160cwe-150
Published: 08/29/2025 (08/29/2025, 21:28:22 UTC)
Source: CVE Database V5
Vendor/Project: tokio-rs
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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 software

Affected versions
<0.3.20

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/14/2026, 21:18:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses