tracing-subscriber
Affected
- introduced
0, fixed0.3.20(semver)
Fixed versions
0.3.20
Fix
- Fixed version
0.3.20cargo update -p tracing-subscriber --precise 0.3.20
Advisory
Also known as: CVE-2025-58160, RUSTSEC-2025-0055
Tracing logging user input may result in poisoning logs with ANSI escape sequences
Impact
Previous versions of tracing-subscriber were 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:
In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.
Patches
tracing-subscriber version 0.3.20 fixes this vulnerability by escaping ANSI control characters in when writing events to destinations that may be printed to the terminal.
Workarounds
Avoid printing logs to terminal emulators without escaping ANSI control sequences.
References
https://www.packetlabs.net/posts/weaponizing-ansi-escape-sequences/
Acknowledgments
We would like to thank zefr0x who responsibly reported the issue at [email protected].
If you believe you have found a security vulnerability in any tokio-rs project, please email us at [email protected].
Low Basis: The source's own band: LOW
0, fixed 0.3.20 (semver)0.3.20
0.3.20cargo update -p tracing-subscriber --precise 0.3.20Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0