CVE-2025-58160
Rust vulnerability analysis and mitigation

Overview

CVE-2025-58160 affects tracing-subscriber, a framework component for instrumenting Rust programs to collect structured, event-based diagnostic information. The vulnerability was discovered and disclosed on August 29, 2025, affecting versions prior to 0.3.20. This security issue involves ANSI escape sequence injection attacks in the tracing-subscriber component (GitHub Advisory).

Technical details

The vulnerability is classified with a CVSS v4.0 base score of 2.3 (LOW) with the vector string 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. The issue stems from improper neutralization of escape, meta, or control sequences (CWE-150), where untrusted user input containing ANSI escape sequences could be injected into terminal output during logging operations (GitHub Advisory, NVD).

Impact

The vulnerability allows attackers to manipulate terminal title bars, clear screens, modify terminal display, and potentially mislead users through terminal manipulation. While the direct impact is considered minimal, there are potential security implications when combined with vulnerabilities in terminal emulators that could be exploited through ANSI escape sequences in logs (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in tracing-subscriber version 0.3.20 by implementing proper escaping of ANSI control characters when writing events to destinations that may be printed to the terminal. For users unable to upgrade immediately, a workaround involves avoiding printing logs to terminal emulators without escaping ANSI control sequences (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-58359MEDIUM6
  • RustRust
  • frost-core
NoYesSep 05, 2025
RUSTSEC-2025-0061N/AN/A
  • RustRust
  • iron
NoNoSep 08, 2025
RUSTSEC-2025-0060N/AN/A
  • RustRust
  • crypto-hash
NoNoSep 08, 2025
RUSTSEC-2025-0059N/AN/A
  • RustRust
  • servo-fontconfig
NoNoSep 08, 2025
RUSTSEC-2025-0058N/AN/A
  • RustRust
  • custom_derive
NoNoSep 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management