# CVE-2025-58160: Tracing logging user input may result in poisoning logs with ANSI escape sequences

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2025-08-29T12:00:00.000Z
- Modified: 2026-10-18T21:10:00.120Z
- Also known as: GHSA-xwfj-jgwm-7wp5, RUSTSEC-2025-0055
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- tokio-rs tracing: < 0.3.20
- tracing-subscriber (crates.io): before 0.3.20; from 0.0.0-0 before 0.3.20

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/tokio-rs/tracing/security/advisories/GHSA-xwfj-jgwm-7wp5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58160> (advisory)
- <https://github.com/tokio-rs/tracing> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0055.html> (advisory, web)
- <https://crates.io/crates/tracing-subscriber> (package)
- <https://github.com/tokio-rs/tracing/pull/3368> (web)

## Sources

- CVE List: [CVE-2025-58160](https://www.cve.org/CVERecord?id=CVE-2025-58160), CVE Terms of Use, modified 2025-09-02
- GitHub Advisory Database: [GHSA-xwfj-jgwm-7wp5](https://github.com/advisories/GHSA-xwfj-jgwm-7wp5), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0055](https://rustsec.org/advisories/RUSTSEC-2025-0055.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2025-58160](https://nvd.nist.gov/vuln/detail/CVE-2025-58160), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-58160 · Whole record: https://cve.day/CVE-2025-58160.json · Rebuilt by cve.day 2026-11-25T22:59:03.911Z
