CVE-2025-55754: ANSI escape sequence injection in Apache Tomcat console logs
- Vendor
- Apache Software Foundation
Apache Tomcat fails to escape ANSI escape sequences in log messages. An attacker can submit a specially crafted URL that injects control sequences into console output, potentially manipulating the console and clipboard to trick an administrator into executing an attacker-controlled command. The documented attack scenario requires Tomcat running in an ANSI-capable Windows console. Attacks on other operating systems may be possible, but no attack vector was identified. Affected versions are 11.0.0-M1 through 11.0.10, 10.1.0-M1 through 10.1.44, 9.0.40 through 9.0.108, and end-of-life releases 8.5.60 through 8.5.100. Older end-of-life releases may also be affected.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Injected control sequences can alter an administrator's console display and clipboard, enabling deceptive output and potentially inducing execution of attacker-controlled commands. Any resulting command execution occurs with the privileges of the administrator's execution context and could compromise accessible data and systems. Command execution requires administrator interaction; the vulnerability does not directly provide unattended server-side code execution.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid running Tomcat in an ANSI-capable interactive console, particularly on Windows. Prevent untrusted log output from being rendered by terminals that interpret escape sequences, and restrict access to affected console output. Administrators should not execute commands suggested by log messages or trust clipboard contents influenced by terminal output. These measures reduce exposure but do not replace upgrading.
Remediation
Patch, then assume compromise.
Upgrade Apache Tomcat to 11.0.11 or later, 10.1.45 or later, or 9.0.109 or later within the corresponding branch. Migrate affected end-of-life 8.5 installations to a supported, fixed branch. For products embedding Tomcat, apply the vendor update that incorporates the corrected component; SAP Commerce Cloud addresses this issue through security note 3683579.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-55754 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2025-55754 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-55754?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2025-55754.
- Is there a patch for CVE-2025-55754?
- Upgrade Apache Tomcat to 11.0.11 or later, 10.1.45 or later, or 9.0.109 or later within the corresponding branch. Migrate affected end-of-life 8.5 installations to a supported, fixed branch.
- What products are affected by CVE-2025-55754?
- Apache Software Foundation Tomcat.
- How severe is CVE-2025-55754?
- CVE-2025-55754 has a CVSS v3.1 score of 9.6 (Critical) and an EPSS score of 10.3% (96th percentile) as of Oct 25, 2026.
Recent activity
37 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.