Skip to content

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

@github-actions

Description

@github-actions

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

Details
Package tracing-subscriber
Version 0.3.19
URL GHSA-xwfj-jgwm-7wp5
Date 2025-08-29
Patched versions >=0.3.20

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.

See advisory page for additional details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions