Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

Apache Tomcat

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Architecture & Implementation

Apache Tomcat is an open source web server and Servlet container for running Java web applications. It hosts Java Servlets, Jakarta Server Pages and related web components, and is commonly deployed as the application runtime behind HTTP or HTTPS front ends.

What Apache Tomcat Is Used For

Apache Tomcat is the Java application runtime layer that receives HTTP or HTTPS traffic and executes Servlets, JSP pages, and related web components. Because it often sits directly behind a reverse proxy or load balancer, Tomcat becomes part of the trusted path between users and the application code, making its configuration a security boundary as well as a deployment concern.

In practice, Tomcat is not just a file on a server, it is the container that determines how web requests reach Java business logic, what management functions are exposed, and how connector, session, and servlet behaviour is enforced. Misconfiguration here can affect application availability, confidentiality, and the integrity of the runtime environment.

Why Tomcat Configuration Matters

Security issues around Tomcat usually arise from exposed administrative features, overly permissive connector settings, weak default access controls, or unsafe file handling inside the webroot. A hardened deployment narrows what the container will serve, who can administer it, and which management surfaces are reachable from the network.

The most important point is that Tomcat security is partly application security and partly platform hardening. A vulnerable web application can be dangerous on any runtime, but a poorly secured Tomcat instance can also expose the container itself, which may widen the blast radius of an application flaw or a management credential compromise.

Apache Tomcat Hardening Guide

Common Exposure Areas

Tomcat exposure is often shaped by its default deployment patterns, especially when administrators leave management apps enabled, allow broad access to the Manager or Host Manager interfaces, or run connectors with insecure defaults. AJP, remote administration, directory listing, writable application paths, and verbose error handling are all recurring sources of unnecessary exposure.

Another common issue is the trust relationship between the front-end web server and Tomcat itself. When the container is placed behind a proxy, organisations must still treat the back-end service as reachable infrastructure, because connector misconfiguration or weak filtering can create paths that bypass intended access controls.

Operationally, this means Tomcat should be inventoried like any other internet-facing or semi-trusted application platform. Administrators need to know which instances exist, which ports and connectors are open, which applications are deployed, and whether the runtime is exposed only through intended ingress paths.

Security Implications of Running Java Applications on Tomcat

Tomcat is often the last execution layer before application code, so compromise of the container can quickly become compromise of the hosted application. If an attacker gains deployment access, can upload malicious content, or can abuse a management interface, they may be able to execute code, alter application behaviour, steal session data, or pivot into adjacent systems.

Because Tomcat hosts multiple web components in a shared runtime, a weakness in one deployed application may also affect the surrounding container if isolation is weak. That is why access logging, least-privilege deployment rights, secure session handling, and careful separation of environments matter even when the underlying codebase seems well secured.

For organisations running production Java services, the container is part of the attack surface, not just the hosting platform. Treating Tomcat as a managed security control point helps reduce the chance that a single application defect becomes a broader server compromise.

Monitoring, Maintenance, and Recovery Considerations

Tomcat requires ongoing attention because the security posture changes whenever connectors, deployed apps, or administrative access paths change. Patch cadence, configuration review, and log review are all part of keeping the runtime trustworthy, especially where older deployments accumulate unused apps, legacy management endpoints, or forgotten test configurations.

After an incident, review should focus on whether the container was used as an initial foothold, whether a deployed webapp was modified, and whether credentials, sessions, or embedded secrets may have been exposed through the runtime. Even when the application itself is the original weakness, Tomcat logs and deployment history can be critical to understanding how far the compromise progressed.

Risk and Threat Considerations

Tomcat becomes risky when administrative interfaces, connector paths, or deployed applications are exposed more broadly than intended. Attackers often target application containers because they can offer direct execution paths, sensitive configuration access, or a bridge from web traffic into server-side code.

Failure mechanism: Weak access control, unsafe connector exposure, or vulnerable deployed components can let an attacker reach management functions, execute code, or tamper with application files and sessions.

Impact: The result can be application takeover, data exposure, loss of integrity in the hosted service, and lateral movement into the wider server environment.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, CIS Controls v8 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeTomcat admin and deployment access should be limited to the minimum required
SI-10 — Information Input ValidationTomcat-hosted web apps depend on safe request handling and input filtering
AU-2 — Event LoggingTomcat security depends on logging access, admin actions, and application events
Recommendation — Restrict Tomcat administration and deployment rights to the smallest set of trusted operators. Validate application inputs before they reach Tomcat-backed business logic. Enable and review Tomcat access and administrative logs for suspicious activity.
CIS Controls v8CIS-4 — Secure Configuration of Enterprise Assets and SoftwareTomcat is hardened through secure connector, admin, and servlet-container configuration
Recommendation — Apply hardened baseline settings to every Tomcat instance and remove unsafe defaults.
OWASP ASVSV13 — ConfigurationTomcat is the runtime configuration layer supporting application security checks
V16 — Security Logging and Error HandlingTomcat error handling and logging affect detection and forensic review
Recommendation — Verify that Tomcat and the hosted application are configured with secure deployment settings. Ensure Tomcat logs security-relevant events and suppresses verbose error disclosure.

Practitioner Guidance

Why practitioners should care: Tomcat hardening is part of the trust model for any Java web application that relies on the container for request handling and administration. Security teams should understand which Tomcat features are actually required, then remove or restrict everything else.

Common misunderstanding: A reverse proxy in front of Tomcat does not make the back end safe by default. The container still needs explicit control over management endpoints, connector exposure, deployment permissions, and logging.

Practitioner takeaway: If Tomcat is production-facing, treat its configuration, patching, and administrative access as first-class security controls rather than deployment details.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org