aws-samples / aws-samples/sample-code-for-a-secure-vault-using-aws-nitro-enclaves

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

Open
#218 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
9
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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

| Details | |
| ------------------- | ---------------------------------------------- |
| Package | `tracing-subscriber` |
| Version | `0.3.19` |
| URL | [https://github.com/advisories/GHSA-xwfj-jgwm-7wp5](https://github.com/advisories/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](https://github.com/tokio-rs/tracing/pull/3368) to escape ANSI control characters from user input.

See [advisory page](https://rustsec.org/advisories/RUSTSEC-2025-0055.html) for additional details.

Contributor guide

Open the contributing guide

Research direction

No repository file or test is named. Start by locating the dependency manifest and lockfile entries for tracing-subscriber 0.3.19, then review the advisory and patched version 0.3.20. Done means the vulnerable version is no longer selected and the project’s existing checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.