Vulnerability GHSA-xwfj-jgwm-7wp5

Low Risk
LOW RISK
CVSS Score: 3.0
Score Range: < 4.0
Low severity vulnerabilities (CVSS < 4.0). Hygiene issues that can accumulate but pose lower immediate risk.
1 year ago
August 29, 2025 at 08:33 PM UTC
Tracing logging user input may result in poisoning logs with ANSI escape sequences
0.0.0 and 0.1.0 - 0.1.6 and 0.2.0 - 0.3.19
0.0.0 and 0.1.0 - 0.1.6 and 0.2.0 - 0.3.19

Summary

Tracing logging user input may result in poisoning logs with ANSI escape sequences

Details

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:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

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].

Impacted packages

Timeline

Published
1 year ago
August 29, 2025 at 08:33 PM UTC
Fixed (0.3.20)
1 year ago
August 29, 2025 at 07:10 PM UTC
Last Modified
1 month ago
September 10, 2026 at 03:50 AM UTC