{"id":"CVE-2025-58160","published":"2025-08-29T21:28:22Z","modified":"2025-09-02T14:08:42Z","title":"Tracing logging user input may result in poisoning logs with ANSI escape sequences","vendor":"tokio-rs","product":"tracing","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0062,"percentile":0.44027,"provenance":"source"},"cwes":[{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"references":[{"url":"https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":8.81},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"tokio-rs","affectedVersions":[{"vendor":"tokio-rs","product":"tracing","versions":["< 0.3.20"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-09-02T14:08:23.820634Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"tracing-subscriber","vulnerableRanges":["<0.3.20",">=0.0.0-0, <0.3.20"],"patched":["0.3.20"],"from":["GHSA-xwfj-jgwm-7wp5","RUSTSEC-2025-0055"],"provenance":"source"}],"summary":{"text":"The tracing-subscriber component of the tracing framework for Rust, in versions before 0.3.20, fails to neutralise ANSI escape sequences in untrusted user input that gets logged, so those sequences reach terminal output. An attacker who can supply input that is logged over the network can exploit this, but it requires user interaction, such as the victim viewing the log output in a terminal emulator, and it can alter the terminal title bar, clear the screen, or otherwise change the display to mislead the user.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:50Z"},"euvd":{"id":"EUVD-2025-26382","exploited":false,"provenance":"source"}}