Skip to main content

Apache Tomcat CVE-2025-55754

CRITICAL
Improper Neutralization of Escape, Meta, or Control Sequences (CWE-150)
2025-10-27 security@apache.org
Critical
Disputed · 9.6 Vendor: apache
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft malicious URL with embedded ANSI sequences
  2. Delivery
    Send HTTP request to Tomcat server
  3. Exploit
    Escape sequences logged unfiltered
  4. Install
    Administrator views logs in ANSI-capable Windows console
  5. C2
    Console interprets escape sequences
  6. Execute
    Fake output manipulates administrator
  7. Impact
    Administrator executes attacker-controlled command

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Escape character neutralization
Exploitation Conditions

Exploitation requires Tomcat running in an interactive console on Windows operating systems (Windows 10 or later with VT sequence support enabled, or third-party terminals like Windows Terminal, ConEmu), not as a Windows service which is standard production configuration. An administrator must actively view Tomcat logs in this ANSI-capable console environment either during real-time monitoring or historical log review. The attack is limited by required user interaction (UI:R in CVSS) - logs must be viewed in vulnerable terminals rather than through log aggregation systems, text editors, or remote log viewers that don't interpret ANSI sequences. While the CVSS vector shows no authentication required (PR:N) for sending the malicious request to Tomcat, the attack chain critically depends on administrator behavior and specific deployment architecture. Standard production deployments where Tomcat runs as a background service on Linux or Windows, or where logs are consumed via SIEM/log management platforms, are not exploitable despite the vulnerability's presence. The vendor notes no attack vector found for non-Windows systems despite theoretical possibility, further constraining realistic exploitation to Windows console scenarios.

Impact

The 9.6 CVSS score (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H) appears inflated relative to realistic exploitation risk. While network-accessible (AV:N) and low-complexity (AC:L), the mandatory user interaction (UI:R) significantly constrains exploitation - an administrator must actively view logs in a vulnerable console configuration. The scope change (S:C) correctly reflects console/clipboard compromise beyond the Tomcat process boundary, but this requires the uncommon deployment scenario of running Tomcat interactively in a Windows console rather than as a background service. Most production Tomcat deployments run as Windows services or on Linux systems where administrators view logs via text editors or log aggregation tools that don't interpret ANSI sequences. The vendor explicitly states 'no attack vector was found' for non-Windows systems despite theoretical possibility. No CISA KEV listing or public exploit code identified, suggesting no confirmed active exploitation. EPSS score unavailable for risk comparison. The primary real-world scenario is social engineering against administrators in development/testing Windows environments, not automated exploitation of production servers. Priority should be moderate for Windows-based Tomcat instances with console access, low for typical production Linux deployments or Windows service configurations.

Exploit ScenarioDerived

An attacker identifies a public-facing Tomcat instance and crafts a malicious URL containing embedded ANSI escape sequences designed to manipulate console output, such as sequences that clear the screen and display fake error messages followed by a suggested 'fix' command that actually runs attacker code. When a Windows administrator monitoring the Tomcat console in real-time (or reviewing recent logs in an ANSI-capable terminal) accesses the server logs after the malicious request is logged, the escape sequences execute in their console, displaying convincing fake security warnings prompting them to run a PowerShell command to 'remediate the issue.' The administrator, trusting the apparently legitimate log output from their Tomcat server, copies and executes the command, resulting in system compromise. No public exploit code exists, but the attack requires only HTTP request crafting and social engineering rather than technical exploitation complexity.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 12, 2026

ANSI escape sequence injection in Apache Tomcat log messages enables console manipulation and social engineering attacks against administrators on Windows systems. Attackers can craft malicious URLs that inject escape sequences into Tomcat logs, potentially manipulating console output and clipboard contents to trick administrators into executing attacker-controlled commands. This affects Tomcat 9.0.40-9.0.108, 10.1.0-M1-10.1.44, and 11.0.0-M1-11.0.10, with highest risk when Tomcat runs in ANSI-capable Windows consoles. Despite the 9.6 CVSS score, real-world risk is lower as exploitation requires user interaction (administrator viewing logs in console), scope change indicating console compromise beyond Tomcat process, and specific Windows deployment configuration. No active exploitation confirmed (not in CISA KEV), and EPSS data not available at time of analysis.

RemediationAI

Upgrade to vendor-released patched versions: Apache Tomcat 11.0.11 or later for 11.x deployments, 10.1.45 or later for 10.x deployments, or 9.0.109 or later for 9.x deployments, as specified in the Apache advisory at https://lists.apache.org/thread/j7w54hqbkfcn0xb9xy0wnx8w5nymcbqd. These versions implement proper ANSI escape sequence sanitization in log output. For systems running EOL versions 8.5.x or older that cannot be upgraded, implement compensating controls: configure Tomcat to run as a Windows service rather than in an interactive console, use log aggregation tools that don't interpret ANSI sequences (Splunk, ELK, plaintext editors), disable VT sequence processing in Windows console properties, or restrict administrator log access to remote viewing methods. Note that running as a service is standard production practice and eliminates console-based exploitation vectors entirely, though log file injection persists and could affect other tools. Organizations using Siemens products should consult https://cert-portal.siemens.com/productcert/html/ssa-032379.html for product-specific guidance. No configuration-based workaround eliminates the vulnerability without upgrading.

Affected Packages

maven org.apache.tomcat.embed:tomcat-embed-core fix: 9.0.109, 10.1.45, 11.0.11
maven org.apache.tomcat:tomcat fix: 9.0.109, 10.1.45, 11.0.11
maven org.apache.tomcat:tomcat-catalina fix: 9.0.109, 10.1.45, 11.0.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences) represents a failure to sanitize control characters that affect output rendering. ANSI escape sequences are special character combinations (e.g., ESC[...m for colors, ESC]...BEL for clipboard operations) interpreted by terminal emulators to control cursor position, colors, and in some cases system clipboard. Apache Tomcat's logging subsystem failed to escape these sequences in log output, allowing attacker-controlled data from HTTP requests (URLs, headers) to pass through to log files unfiltered. When administrators view these logs in ANSI-capable Windows consoles (Command Prompt with VT sequences enabled in Windows 10+, or terminals like Windows Terminal), the escape sequences execute, enabling text manipulation, fake error messages, or clipboard injection. The vulnerability exists in Tomcat's core logging mechanism affecting all three CPE-identified product lines: Tomcat 9.x (cpe:2.3:a:apache:tomcat 9.0.40-9.0.108), 10.x (10.1.0-M1-10.1.44), and 11.x (11.0.0-M1-11.0.10), plus EOL 8.5.60-8.5.100.

Know when Tomcat gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Medium–Critical)
Vendor (apache) PRIMARY 9.6 CRITICAL
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
SUSE CRITICAL
Red Hat 3.5 MEDIUM

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: apache

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in Apache Tomcat.

Tomcat did not escape ANSI escape sequences in log messages. If Tomcat was running in a console on a Windows operating system, and the console supported ANSI escape sequences, it was possible for an attacker to use a specially crafted URL to inject ANSI escape sequences to manipulate the console and the clipboard and attempt to trick an administrator into running an attacker controlled command. While no attack vector was found, it may have been possible to mount this attack on other operating systems.

This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.10, from 10.1.0-M1 through 10.1.44, from 9.0.40 through 9.0.108.

The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.60 though 8.5.100. Other, older, EOL versions may also be affected. Users are recommended to upgrade to version 11.0.11 or later, 10.1.45 or later or 9.0.109 or later, which fix the issue.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 maven packages depend on org.apache.tomcat.embed:tomcat-embed-core (2 direct, 0 indirect)
  • 2 maven packages depend on org.apache.tomcat:tomcat-catalina (2 direct, 0 indirect)

Ecosystem-wide dependent count for version 11.0.0-M1 and other introduced versions.

Executive ViewAI

Why It Matters

Apache Tomcat versions 9.0.40-9.0.108, 10.1.0-M1-10.1.44, and 11.0.0-M1-11.0.10 contain a critical ANSI escape sequence injection vulnerability that allows attackers to manipulate console output and potentially trick administrators into executing malicious commands via crafted URLs logged to Tomcat logs. Organizations running Tomcat on Windows systems with ANSI-capable consoles face social engineering risk if administrators actively monitor log output, though no public exploitation has been confirmed.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Redirect Tomcat log output to file-only handlers and disable console logging to prevent ANSI sequence injection into live console streams; (2) Restrict administrator access to direct Tomcat console output-require log review through sanitized log aggregation tools or text editors that do not interpret ANSI sequences; (3) Configure URL input validation to reject or sanitize requests containing ANSI escape sequences (0x1B character); (4) For high-risk environments, isolate Tomcat processes on non-ANSI-capable consoles or disable ANSI mode in Windows terminal configuration; (5) Educate administrators not to copy/paste content directly from live Tomcat console output into command shells without verification.

Threat Intelligence Overview

EPSS Score
0.1%
Top 69% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Affected Products (CPE)CVE.org

cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*

More in Tomcat

View all
CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2020-1938 CRITICAL POC
9.8 Feb 24

When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate

CVE-2023-47246 CRITICAL POC
9.8 Nov 10

In SysAid On-Premise before 23.3.36, a path traversal vulnerability leads to code execution after an attacker writes a f

CVE-2016-8735 CRITICAL POC
9.8 Apr 06

Remote code execution is possible with Apache Tomcat before 6.0.48, 7.x before 7.0.73, 8.x before 8.0.39, 8.5.x before 8

CVE-2017-12615 HIGH POC
8.1 Sep 19

When running Apache Tomcat 7.0.0 to 7.0.79 on Windows with HTTP PUTs enabled (e.g. Rated high severity (CVSS 8.1), this

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-0050 HIGH POC
7.5 Apr 01

MultipartStream.java in Apache Commons FileUpload before 1.3.1, as used in Apache Tomcat, JBoss Web, and other products,

CVE-2020-13935 HIGH POC
7.5 Jul 14

The payload length in a WebSocket frame was not correctly validated in Apache Tomcat 10.0.0-M1 to 10.0.0-M6, 9.0.0.M1 to

CVE-2018-11784 MEDIUM POC
4.3 Oct 04

When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r

CVE-2022-29885 HIGH POC
7.5 May 12

The documentation of Apache Tomcat 10.1.0-M1 to 10.1.0-M14, 10.0.0-M1 to 10.0.20, 9.0.13 to 9.0.62 and 8.5.38 to 8.5.78

CVE-2017-12616 HIGH
7.5 Sep 19

When using a VirtualDirContext with Apache Tomcat 7.0.0 to 7.0.80 it was possible to bypass security constraints and/or

CVE-2020-9484 HIGH POC
7.0 May 20

When using Apache Tomcat versions 10.0.0-M1 to 10.0.0-M4, 9.0.0.M1 to 9.0.34, 8.5.0 to 8.5.54 and 7.0.0 to 7.0.103 if a)

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
Container suse/manager/5.0/x86_64/server:5.0.6.7.36.2 Container suse/multi-linux-manager/5.1/x86_64/server:5.1.1.1.8.10.2 Image SLES15-SP4-Manager-Server-4-3-BYOS Image SLES15-SP4-Manager-Server-4-3-BYOS-Azure Image SLES15-SP4-Manager-Server-4-3-BYOS-EC2 Image SLES15-SP4-Manager-Server-4-3-BYOS-GCE Affected
Container suse/sl-micro/6.0/base-os-container:latest Container suse/sl-micro/6.0/toolbox:latest Container suse/sl-micro/6.1/base-os-container:2.2.0-4.48 Image SL-Micro Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-Base Image SL-Micro-Base-RT Image SL-Micro-Base-RT-SelfInstall Image SL-Micro-Base-RT-encrypted Image SL-Micro-Base-SelfInstall Image SL-Micro-Base-encrypted Image SL-Micro-Base-qcow Image SL-Micro-Default Image SL-Micro-Default-SelfInstall Image SL-Micro-Default-encrypted Image SL-Micro-Default-qcow Image SL-Micro-EC2 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected
SUSE Enterprise Storage 7.1 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy