Skip to content
Heist/ feed
Back to feed
Low

rust-tracing-subscriber — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-58160

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.

Products
rust-tracing-subscriber
Affected versions
0.3.17-1, 0.3.18-1, 0.3.18-2, 0.3.18-4, 0.3.20-1, 0.3.22-2, 0.3.23-1
Fixed versions
Not specified
CVEs
CVE-2025-58160
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:34 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-58160

core-osv · Original source

Published 29 Aug 2025, 22:15 UTC

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.

osv:UBUNTU-CVE-2025-58160

rust-tracing-subscriber

Fixed versions: Not specified

rust-tracing-subscriber

Fixed versions: Not specified

rust-tracing-subscriber

Fixed versions: Not specified

rust-tracing-subscriber

Fixed versions: Not specified

Complete source record
{
  "id": "d621ea2b7168dc0e066318f280e70fe7c0ac574e8093e802e552178d59238dd9",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-58160",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-58160",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2025-58160",
    "products": [
      {
        "name": {
          "value": "rust-tracing-subscriber",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.17-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.3.18-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.3.18-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-tracing-subscriber",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.18-4",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-tracing-subscriber",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.22-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.3.23-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-tracing-subscriber",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.18-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.3.20-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.3.22-2",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "UBUNTU-CVE-2025-58160",
      "aliases": [
        "UBUNTU-CVE-2025-58160"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tracing-subscriber",
            "purl": "pkg:deb/ubuntu/rust-tracing-subscriber?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.3.17-1",
            "0.3.18-1",
            "0.3.18-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58160.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tracing-subscriber-dev",
                "binary_version": "0.3.18-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tracing-subscriber",
            "purl": "pkg:deb/ubuntu/rust-tracing-subscriber?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.3.18-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58160.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tracing-subscriber-dev",
                "binary_version": "0.3.18-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tracing-subscriber",
            "purl": "pkg:deb/ubuntu/rust-tracing-subscriber?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.3.22-2",
            "0.3.23-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58160.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tracing-subscriber-dev",
                "binary_version": "0.3.23-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-tracing-subscriber",
            "purl": "pkg:deb/ubuntu/rust-tracing-subscriber?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.3.18-4",
            "0.3.20-1",
            "0.3.22-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58160.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-tracing-subscriber-dev",
                "binary_version": "0.3.22-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:09.152764844Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-58160"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-58160",
        "https://www.cve.org/CVERecord?id=CVE-2025-58160",
        "https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5",
        "https://github.com/tokio-rs/tracing/pull/3368"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-58160",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356804,
  "published_at": "2025-08-29T22:15:00+00:00"
}