Advisory

RUSTSEC-2025-0055

Also known as: CVE-2025-58160, GHSA-xwfj-jgwm-7wp5

Summary

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

Details

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.

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

Severity

Not rated by the source.

Dates

Published
2025-08-29 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

tracing-subscriber

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.20 (semver)

Fixed versions

0.3.20

Fix

  • Fixed version 0.3.20
    cargo update -p tracing-subscriber --precise 0.3.20

Fix 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

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences