Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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](https://github.com/tokio-rs/tracing/pull/3368) to escape ANSI control characters from user input.

Products
tracing-subscriber
Affected versions
Not specified
Fixed versions
0.3.20
CVEs
CVE-2025-58160
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 08:43 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 29 Aug 2025, 12:00 UTC

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](https://github.com/tokio-rs/tracing/pull/3368) to escape ANSI control characters from user input.

osv:RUSTSEC-2025-0055

tracing-subscriber

Fixed versions: 0.3.20

Complete source record
{
  "id": "30827ae27e94b5a2ae71b69c69c9cfc9a935e72dfe8e87b6a00f2002871d094e",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2025-0055",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Logging user input may result in poisoning logs with ANSI escape sequences",
    "summary": "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](https://github.com/tokio-rs/tracing/pull/3368) to escape ANSI control characters from user input.",
    "evidence": "osv:RUSTSEC-2025-0055",
    "products": [
      {
        "name": {
          "value": "tracing-subscriber",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.3.20",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "RUSTSEC-2025-0055",
      "aliases": [
        "CVE-2025-58160",
        "GHSA-xwfj-jgwm-7wp5",
        "RUSTSEC-2025-0055"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "0.3.20"
                }
              ]
            }
          ],
          "package": {
            "name": "tracing-subscriber",
            "purl": "pkg:cargo/tracing-subscriber",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": null,
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0055.json",
            "categories": [
              "format-injection"
            ],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": []
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-12T18:00:11.495445205Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/tracing-subscriber",
        "https://rustsec.org/advisories/RUSTSEC-2025-0055.html",
        "https://github.com/tokio-rs/tracing/pull/3368"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-58160",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 306416,
  "published_at": "2025-08-29T12:00:00+00:00"
}