Vulnerability · Published Nov 18, 2024 · Assigned by apache

CVE-2024-52316Apache Tomcat: Authentication bypass when using Jakarta Authentication API

Critical 9.8

In plain English

A critical-severity security flaw in Apache Tomcat from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.2% (higher than 94% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)6.2%top 6.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

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. 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. Other EOL versions may also be affected. Users are recommended to upgrade to version 11.0.0, 10.1.31 or 9.0.96, which fix the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10tomcat1:10.1.36-1.el10_0ALSA-2025:7497
AlmaLinux:8tomcat1:9.0.120-1.el8_10ALSA-2026:68677
AlmaLinux:10tomcat-admin-webapps1:10.1.36-1.el10_0ALSA-2025:7497
AlmaLinux:8tomcat-admin-webapps1:9.0.120-1.el8_10ALSA-2026:68677
AlmaLinux:10tomcat-docs-webapp1:10.1.36-1.el10_0ALSA-2025:7497
AlmaLinux:8tomcat-docs-webapp1:9.0.120-1.el8_10ALSA-2026:68677
AlmaLinux:8tomcat-el-3.0-api1:9.0.120-1.el8_10ALSA-2026:68677
AlmaLinux:10tomcat-el-5.0-api1:10.1.36-1.el10_0ALSA-2025:7497
AlmaLinux:8tomcat-jsp-2.3-api1:9.0.120-1.el8_10ALSA-2026:68677
AlmaLinux:10tomcat-jsp-3.1-api1:10.1.36-1.el10_0ALSA-2025:7497
AlmaLinux:10tomcat-lib1:10.1.36-1.el10_0ALSA-2025:7497
AlmaLinux:8tomcat-lib1:9.0.120-1.el8_10ALSA-2026:68677
AlmaLinux:8tomcat-servlet-4.0-api1:9.0.120-1.el8_10ALSA-2026:68677
AlmaLinux:10tomcat-servlet-6.0-api1:10.1.36-1.el10_0ALSA-2025:7497
AlmaLinux:10tomcat-webapps1:10.1.36-1.el10_0ALSA-2025:7497
AlmaLinux:8tomcat-webapps1:9.0.120-1.el8_10ALSA-2026:68677
Debian:12tomcat1010.1.34-0+deb12u1DSA-5845-1
Debian:12tomcat1010.1.34-0+deb12u1DEBIAN-CVE-2024-52316
Debian:13tomcat1010.1.31-1DEBIAN-CVE-2024-52316
Debian:14tomcat1010.1.31-1DEBIAN-CVE-2024-52316
Debian:12tomcat99.0.70-2DEBIAN-CVE-2024-52316
Debian:13tomcat99.0.70-2DEBIAN-CVE-2024-52316
Debian:14tomcat99.0.70-2DEBIAN-CVE-2024-52316
Mavenorg.apache.tomcat:tomcat-catalina9.0.96GHSA-xcpr-7mr4-h4xq
Mavenorg.apache.tomcat:tomcat-catalina11.0.1GHSA-xcpr-7mr4-h4xq
Mavenorg.apache.tomcat:tomcat-catalina10.1.30GHSA-xcpr-7mr4-h4xq
Rocky Linux:10tomcat1:10.1.36-1.el10_0RLSA-2025:7497

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Tomcat 11.0.0-M1 – through 11.0.0-M2610.1.0-M1 – through 10.1.309.0.0-M1 – through 9.0.958.5.0 – through 8.5.100

Weakness: CWE-391 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References