---
id: CVE-2025-58160
aliases:
  - RUSTSEC-2025-0055
  - GHSA-xwfj-jgwm-7wp5
title: Logging user input may result in poisoning logs with ANSI escape sequences
summary: Logging user input may result in poisoning logs with ANSI escape sequences
severity: none
vendor: tracing-subscriber
product: tracing-subscriber
ecosystem: rust
affected:
  - 'tracing-subscriber >= 0.0.0-0, < 0.3.20'
patched:
  - tracing-subscriber 0.3.20
published: '2025-08-29'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T18:00:11.495445205Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/RUSTSEC-2025-0055'
references:
  - url: 'https://crates.io/crates/tracing-subscriber'
  - url: 'https://rustsec.org/advisories/RUSTSEC-2025-0055.html'
  - url: 'https://github.com/tokio-rs/tracing/pull/3368'
tags:
  - osv
  - rust
epss: 0.00325
epssPercentile: 0.23661
ingestedAt: '2026-10-13T11:45:30.179Z'
---

## Overview

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.

## Affected packages

- `tracing-subscriber >= 0.0.0-0, < 0.3.20`

## Remediation

Upgrade to a patched release:

- `tracing-subscriber 0.3.20`
