Email me

Rust advisories / tracing-subscriber

Vulnerability LowRUSTSEC-2025-0055 · tracing-subscriber

RUSTSEC-2025-0055: Logging user input may result in poisoning logs with ANSI escape sequences

Short answerA security vulnerability in the tracing-subscriber crate: Logging user input may result in poisoning logs with ANSI escape sequences. GitHub rates it Low. Fixed in 0.3.20: update to a fixed version.

Cratetracing-subscriber
TypeVulnerability (format-injection)
Affected versionsBefore 0.3.20.
Fixed in0.3.20
SeverityLow (GitHub rating)
Published2025-08-29
Last changed2026-10-12
Also known asCVE-2025-58160, GHSA-xwfj-jgwm-7wp5

What to do

  1. See which version you have: cargo tree -i tracing-subscriber (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p tracing-subscriber. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example tracing-subscriber = "0.3.20") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Same cratetracing-subscriber: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ