CVE-2024-52316
JSON

9.8critical

Apache Tomcat: Authentication bypass when using Jakarta Authentication API

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
6.25% (higher than 93% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-xcpr-7mr4-h4xqBIT-TOMCAT-2024-52316

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

Product or packageVersionsReported by
Apache Software Foundation Apache Tomcatfrom 11.0.0-M1 up to 11.0.0-M26, from 10.1.0-M1 up to 10.1.30, from 9.0.0-M1 up to 9.0.95, from 8.5.0 up to 8.5.100, from 10.0.0-M1 up to 10.0.27CVE List
apache tomcatfrom 9.0.0-M1 up to 9.0.95, from 10.1.0-M1 up to 10.1.30, from 11.0.0-M1 up to 11.0.0-M26, from 9.0.0 before 9.0.96, from 10.1.0 before 10.1.31, 11.0.0CVE List, NVD
org.apache.tomcat:tomcat-catalina (Maven)before 9.0.96, from 10.1.0-M1 before 10.1.30, from 11.0.0-M1 before 11.0.1GitHub Advisory Database
debian debian_linux11.0NVD
tomcat (Bitnami)from 9.0.0 before 9.0.96, from 10.0.0 before 10.1.31Bitnami Vulnerability Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-391CWE-754

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

Users are recommended to upgrade to version 11.0.0, 10.1.31 or 9.0.96, which fix the issue.

NVD (es)

Vulnerabilidad de condición de error no comprobada en Apache Tomcat. Si Tomcat está configurado para utilizar un componente ServerAuthContext de autenticación de Jakarta (anteriormente JASPIC) personalizado que puede generar una excepción durante el proceso de autenticación sin establecer explícitamente un estado HTTP para indicar un error, la autenticación puede no fallar, lo que permite al usuario omitir el proceso de autenticación. No se conocen componentes de autenticación de Jakarta que se comporten de esta manera. Este problema afecta a Apache Tomcat: desde 11.0.0-M1 hasta 11.0.0-M26, desde 10.1.0-M1 hasta 10.1.30, desde 9.0.0-M1 hasta 9.0.95. Se recomienda a los usuarios que actualicen a la versión 11.0.0, 10.1.31 o 9.0.96, que solucionan el problema.

Bitnami Vulnerability Database

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 through 11.0.0, from 10.1.0 through 10.1.30, from 9.0.0 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.

References

https://lists.apache.org/thread/lopzlqh91jj9n334g02om08sbysdb928advisory, mailing-list, vendor-advisory, web
http://www.openwall.com/lists/oss-security/2024/11/18/2advisory, mailing-list, third-party-advisory, web
https://security.netapp.com/advisory/ntap-20250124-0003/advisory, third-party-advisory
https://lists.debian.org/debian-lts-announce/2025/01/msg00009.htmladvisory, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2024-52316advisory, web
https://github.com/apache/tomcat/commit/6d097a66746635df6880fe7662a792156b0eca14web
https://github.com/apache/tomcat/commit/7532f9dc4a8c37ec958f79dc82c4924a6c539223web
https://github.com/apache/tomcat/commit/acc2f01395f895980f5d8a64573fcc1bade13369web
https://github.com/apache/tomcatpackage
https://security.netapp.com/advisory/ntap-20250124-0003web

Sources

SourceRecordLicence
CVE ListCVE-2024-52316 changed 2025-11-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-xcpr-7mr4-h4xq changed 2025-11-03CC-BY-4.0
NVDCVE-2024-52316 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-TOMCAT-2024-52316 changed 2026-09-08Apache-2.0