HistoryEditJSON (OSV)

RUSTSEC-2025-0055

Logging user input may result in poisoning logs with ANSI escape sequences

Reported
Issued
Package
tracing-subscriber (crates.io)
Type
Vulnerability
Categories
Aliases
References
Patched
  • >=0.3.20

Description

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.

This was patched in PR #3368 to escape ANSI control characters from user input.

Advisory available under CC0-1.0 license.