CVE-2025-58160

Tracing logging user input may result in poisoning logs with ANSI escape sequences

Published Aug 29, 2025 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-26382 Tracing logging user input may result in poisoning logs with ANSI escape sequences
Github GHSA Github GHSA GHSA-xwfj-jgwm-7wp5 Tracing logging user input may result in poisoning logs with ANSI escape sequences
History
Type Values Removed Values Added
First Time appeared Tokio
Tokio tracing
Vendors & Products Tokio
Tokio tracing
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N'}

threat_severity

Low

Type Values Removed Values Added
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.
Title Tracing logging user input may result in poisoning logs with ANSI escape sequences
Weaknesses CWE-150
References
Metrics cvssV4_0

{'score': 2.3, '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'}

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 2, 2025, 2:08 PM
Reserved
Aug 27, 2025, 1:34 PM
Status
Deferred
Published
Aug 29, 2025, 10:15 PM
Modified
Oct 18, 2026, 9:10 PM
Severity
Low
Public date
Aug 29, 2025, 9:28 PM