1. Home
  2. Vulnerabilities
  3. CVE-2025-58160

CVE-2025-58160

tracing is a framework for instrumenting Rust programs to collect structured, event-based diagnostic…

Published 29 Aug 2025 · modified 18 Oct 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Low 21/100

Summary

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.

Affected products and versions

crates.io (1 line(s))
crates.io
ProductVersionsFixed inSource
tracing-subscriber from 0.0.0-0 (included) to 0.3.20 (excluded) 0.3.20 OSV

Fix

Upgrade — crates.io/tracing-subscriber 0.3.20official source

Source : OSV

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)
  2. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1385)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
CNA (vendor or assigner)
CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R: (CVSS 4.0, CNA:security-advisories@github.com)
Weakness
CWE-150 · Autre (CWE-150)

How this data is obtained and calculated