CVE-2024-52316: Apache Tomcat Authentication Bypass Vulnerability
CRITICALCVE-2024-52316 is a CRITICAL (CVSS 9.8) authentication bypass vulnerability (CWE-391: Unchecked Error Condition) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves apache tomcat - authentication bypass. Remediation is available by upgrading affected packages to version 9.0.96, 10.1.30, 11.0.1.
CVE-2024-52316 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-52316
To remediate this vulnerability, upgrade all affected Apache Tomcat dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>9.0.96</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>10.1.30</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>11.0.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.tomcat
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-52316, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.tomcat
Analyze the terminal output to locate any version of Apache Tomcat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.0.96), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.tomcat command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-391: Unchecked Error Condition, where [planned for deprecation. see maintenance notes and consider cwe-252, cwe-248, or cwe-1069.] ignoring exceptions and other error conditions may allow an attacker to induce unexpected behavior unnoticed. In Apache Tomcat, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-52316 Affected Apache Tomcat Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
< 9.0.96
|
9.0.96
|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
≥ 10.1.0-M1
< 10.1.30
|
10.1.30
|
|
org.apache.tomcat:tomcat-catalina
|
Maven |
≥ 11.0.0-M1
< 11.0.1
|
11.0.1
|
References
Frequently Asked Questions
What is CVE-2024-52316?
Which Apache Tomcat versions are affected?
What version fixes CVE-2024-52316?
Is tomcat-catalina affected?
What is the CVSS score of CVE-2024-52316?
What CWE is associated with CVE-2024-52316?
How can I check Maven dependencies for CVE-2024-52316?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xcpr-7mr4-h4xq",
"modified" : "2025-11-03T21:31:37Z",
"published" : "2024-11-18T12:30:43Z",
"aliases" : [ "CVE-2024-52316" ],
"summary" : "Apache Tomcat - Authentication Bypass",
"details" : "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.\n\nThis 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. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100.\n\nUsers are recommended to upgrade to version 11.0.0, 10.1.31 or 9.0.96, which fix the issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.0.96"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.1.0-M1"
}, {
"fixed" : "10.1.30"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.tomcat:tomcat-catalina"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-M1"
}, {
"fixed" : "11.0.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 11.0.0-M26"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52316"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/6d097a66746635df6880fe7662a792156b0eca14"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/7532f9dc4a8c37ec958f79dc82c4924a6c539223"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/tomcat/commit/acc2f01395f895980f5d8a64573fcc1bade13369"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/tomcat"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/lopzlqh91jj9n334g02om08sbysdb928"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/01/msg00009.html"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20250124-0003"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/11/18/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-391", "CWE-754" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-18T23:48:03Z",
"nvd_published_at" : "2024-11-18T12:15:18Z"
}
}