[Pkg-rust-maintainers] Bug#1112553: rust-tracing-subscriber: CVE-2025-58160

Salvatore Bonaccorso carnil at debian.org
Sat Aug 30 20:09:28 BST 2025


Source: rust-tracing-subscriber
Version: 0.3.18-4
Severity: important
Tags: security upstream
Forwarded: https://github.com/tokio-rs/tracing/pull/3368
X-Debbugs-Cc: carnil at debian.org, Debian Security Team <team at security.debian.org>

Hi,

The following vulnerability was published for rust-tracing-subscriber.

CVE-2025-58160[0]:
| 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.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2025-58160
    https://www.cve.org/CVERecord?id=CVE-2025-58160
[1] https://github.com/tokio-rs/tracing/pull/3368
[2] https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5
[3] https://github.com/tokio-rs/tracing/commit/4c52ca5266a3920fc5dfeebda2accf15ee7fb278

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore



More information about the Pkg-rust-maintainers mailing list