p PatchFirst

CVE-2025-58160

CVE-2025-58160 · Tracing logging user input may result in poisoning logs with ANSI escape sequences

CVSS 2.3 · Low · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-tracing-subscriber"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

tracing is a framework for instrumenting Rust programs to collect structured, event-based diagnostic information. Prior to version 0.3.20, tracing-subscriber was 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, and potentially mislead users through terminal manipulation. tracing-subscriber version 0.3.20 fixes this vulnerability by escaping ANSI control characters when writing events to destinations that may be printed to the terminal. A workaround involves avoiding printing logs to terminal emulators without escaping ANSI control sequences.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • tracing

    Versions
    • < 0.3.20: Affected

    No fix published

  • rust-tracing-subscriber Debian 12

    Versions
    • 0.3.16-2
    • 0.3.17-1
    • 0.3.17-2
    • 0.3.18-1
    • 0.3.18-2
    • 0.3.18-3
    All versions (12)
    • 0.3.18-4
    • 0.3.20-1
    • 0.3.22-1
    • 0.3.22-2
    • 0.3.22-3
    • 0.3.23-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-tracing-subscriber Debian 13

    Versions
    • 0.3.18-4
    • 0.3.20-1
    • 0.3.22-1
    • 0.3.22-2
    • 0.3.22-3
    • 0.3.23-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-tracing-subscriber Debian 14

    Versions
    • 0.3.18-4
    Affected ranges
    • ECOSYSTEM: < 0.3.20-1

    Update to 0.3.20-1

  • rust-tracing-subscriber Ubuntu 24.04 LTS

    Versions
    • 0.3.17-1
    • 0.3.18-1
    • 0.3.18-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-tracing-subscriber Ubuntu 25.10

    Versions
    • 0.3.18-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-tracing-subscriber Ubuntu 26.10

    Versions
    • 0.3.22-2
    • 0.3.23-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-tracing-subscriber Ubuntu 26.04 LTS

    Versions
    • 0.3.18-4
    • 0.3.20-1
    • 0.3.22-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →