CVE-2024-52316
NoneCVSS
—
EPSS
6.2%
Published
Nov 18, 2024
CISA due date
—
Cloudanix analysis
A problem in how the Tomcat web server handles certain errors during login with custom setups might allow people to get in without proper credentials.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Web Framework
- Class
- Authentication Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability allows authentication bypass in Tomcat when a custom JASPIC ServerAuthContext throws an exception without setting an HTTP failure status, causing the auth process to not fail properly.
Why it matters to the business
Organizations using affected Tomcat versions with custom auth components risk unauthorized access to protected resources, potentially leading to data breaches or system compromise, though no widespread exploitation known and EPSS low with stable trend.
How an attack unfolds
An attacker sends authentication requests that trigger an exception in the custom component without proper failure status, allowing the session to proceed as authenticated.
How to fix it
Upgrade Apache Tomcat to version 11.0.0, 10.1.31, or 9.0.96 depending on the branch in use.
How to confirm the fix worked
Verify Tomcat version is updated to fixed releases and test custom auth components for proper error handling with explicit HTTP status on exceptions.
Typical attack path
- Identify target Tomcat server configured with custom JASPIC ServerAuthContext
- Send crafted authentication requests designed to cause an exception in the component
- Exploit the unchecked error condition so that failure status is not set
- Bypass authentication and gain access to protected resources
How to detect it
Check application logs for authentication successes following exceptions in custom auth modules and review access logs for unexpected entries to protected areas.
What your security team should do
- Upgrade Tomcat immediately to patched versions 11.0.0, 10.1.31 or 9.0.96
- Audit and review any custom JASPIC implementations for proper exception handling
- Monitor authentication logs for anomalies after upgrade
- Apply least privilege principles to authentication components
The record
Unchecked Error Condition vulnerability in Apache Tomcat. If Tomcat is configured to use a custom Jakarta Authentication (formerly JASPIC) ServerAuthContext component which may throw an exception during the authentication process without explicitly setting an HTTP status to indicate failure, the authentication may not fail, allowing the user to bypass the authentication process. There are no known Jakarta Authentication components that behave in this way. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.0-M26, from 10.1.0-M1 through 10.1.30, from 9.0.0-M1 through 9.0.95. Users are recommended to upgrade to version 11.0.0, 10.1.31 or 9.0.96, which fix the issue.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | org.apache.tomcat:tomcat-catalina | 0 | 9.0.96 |
| Maven | org.apache.tomcat:tomcat-catalina | 10.1.0-M1 | 10.1.30 |
| Maven | org.apache.tomcat:tomcat-catalina | 11.0.0-M1 | 11.0.1 |
| AlmaLinux:10 | tomcat | 0 | 1:10.1.36-1.el10_0 |
| AlmaLinux:10 | tomcat-admin-webapps | 0 | 1:10.1.36-1.el10_0 |
| AlmaLinux:10 | tomcat-docs-webapp | 0 | 1:10.1.36-1.el10_0 |
| AlmaLinux:10 | tomcat-el-5.0-api | 0 | 1:10.1.36-1.el10_0 |
| AlmaLinux:10 | tomcat-jsp-3.1-api | 0 | 1:10.1.36-1.el10_0 |
| AlmaLinux:10 | tomcat-lib | 0 | 1:10.1.36-1.el10_0 |
| AlmaLinux:10 | tomcat-servlet-6.0-api | 0 | 1:10.1.36-1.el10_0 |
| AlmaLinux:10 | tomcat-webapps | 0 | 1:10.1.36-1.el10_0 |
| Bitnami | tomcat | 11.0.0 | 11.0.0 |
| Bitnami | tomcat | 11.0.0-m1 | 11.0.0 |
| Bitnami | tomcat | 9.0.0 | 9.0.96 |
| Debian:11 | tomcat9 | 0 | No fix |
| Debian:11 | tomcat9 | 0 | 9.0.43-2~deb11u11 |
| Debian:12 | tomcat10 | 0 | No fix |
| Debian:12 | tomcat10 | 0 | 10.1.34-0+deb12u1 |
| Debian:12 | tomcat9 | 0 | 9.0.70-2 |
| Debian:13 | tomcat10 | 0 | 10.1.31-1 |
| Debian:13 | tomcat9 | 0 | 9.0.70-2 |
| Mageia:9 | tomcat | 0 | 9.0.97-1.mga9 |
| SUSE:Enterprise Storage 7.1 | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise Module for Web and Scripting 15 SP5 | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise Module for Web and Scripting 15 SP5 | tomcat10 | 0 | 10.1.33-150200.5.28.1 |
| SUSE:Linux Enterprise Module for Web and Scripting 15 SP6 | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise Module for Web and Scripting 15 SP6 | tomcat10 | 0 | 10.1.33-150200.5.28.1 |
| SUSE:Linux Enterprise Server 12 SP5-LTSS | tomcat | 0 | 9.0.36-3.133.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | tomcat | 0 | 9.0.36-3.133.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | tomcat | 0 | 9.0.97-150200.71.1 |
| SUSE:Manager Server 4.3 | tomcat | 0 | 9.0.97-150200.71.1 |
| Ubuntu:20.04:LTS | tomcat9 | 0 | No fix |
| Ubuntu:22.04:LTS | tomcat9 | 0 | No fix |
| Ubuntu:24.04:LTS | tomcat10 | 0 | No fix |
| Ubuntu:24.04:LTS | tomcat9 | 0 | No fix |
| Ubuntu:24.10 | tomcat10 | 0 | No fix |
| Ubuntu:24.10 | tomcat9 | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | tomcat6 | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | tomcat7 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | tomcat6 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | tomcat7 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | tomcat8 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | tomcat7 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | tomcat8 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | tomcat9 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | tomcat9 | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | tomcat9 | 0 | No fix |
| Ubuntu:Pro:24.04:LTS | tomcat10 | 0 | 10.1.16-1ubuntu0.1~esm3 |
| maven | org.apache.tomcat/tomcat-catalina | 10.1.0-M1 | 10.1.30 |
| maven | org.apache.tomcat/tomcat-catalina | 11.0.0-M1 | 11.0.1 |
| openSUSE:Leap 15.5 | tomcat | 0 | 9.0.97-150200.71.1 |
| openSUSE:Leap 15.5 | tomcat10 | 0 | 10.1.33-150200.5.28.1 |
| openSUSE:Leap 15.6 | tomcat | 0 | 9.0.97-150200.71.1 |
| openSUSE:Leap 15.6 | tomcat10 | 0 | 10.1.33-150200.5.28.1 |
| openSUSE:Tumbleweed | tomcat | 0 | 9.0.97-1.1 |
| openSUSE:Tumbleweed | tomcat10 | 0 | 10.1.33-1.1 |
Related vulnerabilities
- CVE-2026-24733 Improper Input Validation vulnerability in Apache Tomcat. Also affects org.apache.tomcat:tomcat-catalina
- CVE-2025-66614 Improper Input Validation vulnerability. Also affects org.apache.tomcat:tomcat-catalina
- GHSA-wmwf-9ccg-fff5 Apache Tomcat Vulnerable to Relative Path Traversal Also affects org.apache.tomcat:tomcat-catalina
- GHSA-vfww-5hm6-hx2j Apache Tomcat Vulnerable to Improper Neutralization of Escape, Meta, or Control Sequences Also affects org.apache.tomcat:tomcat-catalina
- CVE-2025-61795 Improper Resource Shutdown or Release vulnerability in Apache Tomcat. Also affects org.apache.tomcat:tomcat-catalina
- CVE-2025-55752 Relative Path Traversal vulnerability in Apache Tomcat. Also affects org.apache.tomcat:tomcat-catalina
- CVE-2025-55754 Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in Apache… Also affects org.apache.tomcat:tomcat-catalina
- CVE-2025-52520 Apache Tomcat Catalina is vulnerable to DoS attack through bypassing of size limits Also affects org.apache.tomcat:tomcat-catalina